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
...@@ -259,8 +259,9 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -259,8 +259,9 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
isBaseCategory = 0 # isBaseCategory = 0 #
isMovement = 0 # isMovement = 0 #
isDelivery = 0 # isDelivery = 0 #
isIndexable = 1 # If set to 0, reindexing will not happen (useful for optimization) isIndexable = 1 # If set to 0, reindexing will not happen (useful for optimization)
is_predicate = 0 #
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -920,13 +921,16 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -920,13 +921,16 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
""" """
return self.getParent().getTitleOrId() return self.getParent().getTitleOrId()
security.declareProtected( Permissions.AccessContentsInformation, 'getParent' ) security.declareProtected( Permissions.AccessContentsInformation, 'getParentValue' )
def getParent(self): def getParentValue(self):
""" """
Returns the parent of the current object. Returns the parent of the current object.
""" """
return self.aq_parent return self.aq_parent
security.declareProtected( Permissions.AccessContentsInformation, 'getParent' )
getParent = getParentValue # Compatibility
security.declareProtected( Permissions.AccessContentsInformation, 'getUid' ) security.declareProtected( Permissions.AccessContentsInformation, 'getUid' )
def getUid(self): 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