Commit 1ba993f8 authored by Jérome Perrin's avatar Jérome Perrin

add a getAbsoluteUrl method to be able to use it in property sheets


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20702 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 25792737
...@@ -1820,6 +1820,14 @@ class Base( CopyContainer, ...@@ -1820,6 +1820,14 @@ class Base( CopyContainer,
""" """
return self.portal_url.getRelativeUrl(self) return self.portal_url.getRelativeUrl(self)
security.declareProtected(Permissions.AccessContentsInformation,
'getAbsoluteUrl')
def getAbsoluteUrl(self):
"""
Returns the absolute url of an object.
"""
return self.absolute_url()
security.declareProtected(Permissions.AccessContentsInformation, 'getPortalObject') security.declareProtected(Permissions.AccessContentsInformation, 'getPortalObject')
def getPortalObject(self): def getPortalObject(self):
""" """
......
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