Commit 489d2ad8 authored by Sebastien Robin's avatar Sebastien Robin

added method build, (it only calls the build method of the delivery builder)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3910 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 03ad3b1a
...@@ -533,3 +533,12 @@ class Delivery(XMLObject): ...@@ -533,3 +533,12 @@ class Delivery(XMLObject):
"Could not expand applied rule %s for delivery %s" %\ "Could not expand applied rule %s for delivery %s" %\
(applied_rule_id, self.getId())) (applied_rule_id, self.getId()))
security.declareProtected(Permissions.ModifyPortalContent, 'build')
def build(self, builder_id):
"""
Call the build method on the coressponding builder
"""
builder = getToolByName(self,'portal_deliveries')[builder_id]
applied_rule = self.getCausalityRelatedValue(portal_type='Applied Rule')
builder.build(applied_rule_uid=applied_rule.getUid())
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