diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index e221aebfa2b324caf9a17140aecf1ee2f867d7a6..b44ab206a05f34871e0073e7193f3963dbd15555 100755 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -30,6 +30,7 @@ from Products.ERP5Type.Cache import CachingMethod from os import path from zLOG import LOG +from string import join import os @@ -138,6 +139,13 @@ class ERP5Site ( CMFSite, FolderMixIn ): def setLastId(self, id): self.last_id = id + security.declareProtected(Permissions.AccessContentsInformation, 'getPath') + def getPath(self, REQUEST=None): + """ + Returns the absolute path of an object + """ + return join(self.getPhysicalPath(),'/') + security.declareProtected(Permissions.AccessContentsInformation, 'searchFolder') def searchFolder(self, **kw): """