Commit f105c8f1 authored by Aurel's avatar Aurel

allow to use script to redefine getBaobabSource and getBaobabDestination


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6929 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29d0bb1c
...@@ -69,12 +69,18 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell): ...@@ -69,12 +69,18 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell):
def getBaobabSource(self, **kw): def getBaobabSource(self, **kw):
""" """
""" """
script = self._getTypeBasedMethod('getBaobabSource')
if script is not None:
return script(self)
return self.aq_parent.getBaobabSource(**kw) return self.aq_parent.getBaobabSource(**kw)
security.declareProtected(Permissions.View, 'getBaobabDestination') security.declareProtected(Permissions.View, 'getBaobabDestination')
def getBaobabDestination(self, **kw): def getBaobabDestination(self, **kw):
""" """
""" """
script = self._getTypeBasedMethod('getBaobabDestination')
if script is not None:
return script(self)
return self.aq_parent.getBaobabDestination(**kw) return self.aq_parent.getBaobabDestination(**kw)
security.declareProtected(Permissions.View, 'getBaobabSourceSection') security.declareProtected(Permissions.View, 'getBaobabSourceSection')
......
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