[Erp5-report] r10337 - /erp5/trunk/products/ERP5/Document/SupplyLine.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 26 18:37:48 CEST 2006
Author: romain
Date: Tue Sep 26 18:37:46 2006
New Revision: 10337
URL: http://svn.erp5.org?rev=10337&view=rev
Log:
Respect Accessor API.
Modified:
erp5/trunk/products/ERP5/Document/SupplyLine.py
Modified: erp5/trunk/products/ERP5/Document/SupplyLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SupplyLine.py?rev=10337&r1=10336&r2=10337&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SupplyLine.py (original)
+++ erp5/trunk/products/ERP5/Document/SupplyLine.py Tue Sep 26 18:37:46 2006
@@ -204,10 +204,12 @@
security.declareProtected(Permissions.AccessContentsInformation,
'getQuantityStepList')
- def getQuantityStepList(self, price_parameter="base_price"):
+ def getQuantityStepList(self, *args, **kw):
"""
Return predicate step related to a price_parameter
"""
+ # We need to keep compatibility with generated accessor
+ price_parameter = kw.get('price_parameter', "base_price")
if price_parameter == "base_price":
method_name = "_baseGetQuantityStepList"
else:
More information about the Erp5-report
mailing list