Commit 7daa03af authored by Jean-Paul Smets's avatar Jean-Paul Smets

getParent renamed to getParentValue (with compat.)

added is_predicate class prop.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 42865293
......@@ -260,6 +260,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
isMovement = 0 #
isDelivery = 0 #
isIndexable = 1 # If set to 0, reindexing will not happen (useful for optimization)
is_predicate = 0 #
# Declarative security
security = ClassSecurityInfo()
......@@ -920,13 +921,16 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
"""
return self.getParent().getTitleOrId()
security.declareProtected( Permissions.AccessContentsInformation, 'getParent' )
def getParent(self):
security.declareProtected( Permissions.AccessContentsInformation, 'getParentValue' )
def getParentValue(self):
"""
Returns the parent of the current object.
"""
return self.aq_parent
security.declareProtected( Permissions.AccessContentsInformation, 'getParent' )
getParent = getParentValue # Compatibility
security.declareProtected( Permissions.AccessContentsInformation, 'getUid' )
def getUid(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