From 5d423bb5428057ce20a0cc7e95fcb50f58a1b7c6 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 7 Jun 2006 10:45:25 +0000 Subject: [PATCH] kw was missing in parameters git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7636 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Banking/Document/CashDelivery.py | 12 ++++++------ product/ERP5Banking/Document/CashDeliveryLine.py | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/product/ERP5Banking/Document/CashDelivery.py b/product/ERP5Banking/Document/CashDelivery.py index 25c62cd63d..a4d7af59be 100755 --- a/product/ERP5Banking/Document/CashDelivery.py +++ b/product/ERP5Banking/Document/CashDelivery.py @@ -61,21 +61,21 @@ class CashDelivery(BankingOperation): ) security.declareProtected(Permissions.View, 'getBaobabSource') - def getBaobabSource(self): + def getBaobabSource(self,**kw): """ Returns a calculated source """ script = self._getTypeBasedMethod('getBaobabSource') if script is not None: - return script(self) - return self.getSource() + return script(self,**kw) + return self.getSource(**kw) security.declareProtected(Permissions.View, 'getBaobabDestination') - def getBaobabDestination(self): + def getBaobabDestination(self,**kw): """ Returns a calculated destination """ script = self._getTypeBasedMethod('getBaobabDestination') if script is not None: - return script(self) - return self.getDestination() + return script(self,**kw) + return self.getDestination(**kw) diff --git a/product/ERP5Banking/Document/CashDeliveryLine.py b/product/ERP5Banking/Document/CashDeliveryLine.py index 36eb331918..e5aa51aaeb 100755 --- a/product/ERP5Banking/Document/CashDeliveryLine.py +++ b/product/ERP5Banking/Document/CashDeliveryLine.py @@ -68,23 +68,23 @@ class CashDeliveryLine(BaobabMixin, DeliveryLine): ) security.declareProtected(Permissions.View, 'getBaobabSource') - def getBaobabSource(self): + def getBaobabSource(self,**kw): """ Returns a calculated source """ script = self._getTypeBasedMethod('getBaobabSource') if script is not None: - return script(self) + return script(self,**kw) return self.aq_parent.getBaobabSource(**kw) security.declareProtected(Permissions.View, 'getBaobabDestination') - def getBaobabDestination(self): + def getBaobabDestination(self,**kw): """ Returns a calculated destination """ script = self._getTypeBasedMethod('getBaobabDestination') if script is not None: - return script(self) + return script(self,**kw) return self.aq_parent.getBaobabDestination(**kw) security.declareProtected(Permissions.View, 'getBaobabSourceVariationText') -- 2.30.9