Commit d8fe83d7 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added deliverability API


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@604 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77b047cb
......@@ -414,3 +414,21 @@ a service in a public administration)."""
its direct consequences. (ex. we do not calculate again a transformation)
"""
return 0
# Deliverability / orderability
security.declareProtected(Permissions.AccessContentsInformation, 'isOrderable')
def isOrderable(self):
applied_rule = self.aq_parent
rule = applied_rule.getSpecialiseValue()
if rule is not None:
return rule.isOrderable(m)
return 0
security.declareProtected(Permissions.AccessContentsInformation, 'isDeliverable')
def isDeliverable(self):
applied_rule = self.aq_parent
rule = applied_rule.getSpecialiseValue()
if rule is not None:
return rule.isDeliverable(m)
return 0
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