Commit c01816db authored by Kevin Deldycke's avatar Kevin Deldycke

getUrl() is the standard method, not getPath().

Auto-delete trailing space.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8552 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69d42e39
......@@ -169,15 +169,18 @@ class ERP5Site(FolderMixIn, CMFSite):
def setLastId(self, id):
self.last_id = id
security.declareProtected(Permissions.AccessContentsInformation, 'getPath')
def getPath(self, REQUEST=None):
security.declareProtected(Permissions.AccessContentsInformation, 'getUrl')
def getUrl(self, REQUEST=None):
"""
Returns the absolute path of an object
"""
return join(self.getPhysicalPath(),'/')
security.declareProtected(Permissions.AccessContentsInformation,
'searchFolder')
# Old name - for compatibility
security.declareProtected(Permissions.AccessContentsInformation, 'getPath')
getPath = getUrl
security.declareProtected(Permissions.AccessContentsInformation, 'searchFolder')
def searchFolder(self, **kw):
"""
Search the content of a folder by calling
......
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