Commit 9a2601f9 authored by Sebastien Robin's avatar Sebastien Robin

added method hasPath


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1304 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5edcba2
...@@ -479,6 +479,12 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -479,6 +479,12 @@ class ZCatalog(Folder, Persistent, Implicit):
return None return None
getPath = getpath getPath = getpath
def hasPath(self, path):
"""
Checks if path is catalogued
"""
return self._catalog.hasPath(path)
def getobject(self, uid, REQUEST=None): def getobject(self, uid, REQUEST=None):
""" """
Return a cataloged object given its uid Return a cataloged object given its uid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment