Commit 5548163a authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added custom relative url


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4010deac
......@@ -76,3 +76,11 @@ class Domain(Predicate, MetaNode, MetaResource):
# Declarative interfaces
__implements__ = ( Interface.Predicate, )
security.declareProtected( Permissions.AccessContentsInformation, 'getRelativeUrl' )
def getRelativeUrl(self):
"""
We must eliminate portal_categories in the RelativeUrl
since it is never present in the category list
"""
return '/'.join(self.portal_url.getRelativeContentPath(self)[1:])
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