Commit a41d8cc2 authored by Sebastien Robin's avatar Sebastien Robin

added method getPath


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1833 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ca9d6e2
......@@ -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):
"""
......
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