[Erp5-report] r28248 - /erp5/trunk/products/ERP5/tests/testBPMCore.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 3 15:57:47 CEST 2009
Author: luke
Date: Mon Aug 3 15:57:46 2009
New Revision: 28248
URL: http://svn.erp5.org?rev=28248&view=rev
Log:
- allow **kw and use them as initial dictionary while creating document
Modified:
erp5/trunk/products/ERP5/tests/testBPMCore.py
Modified: erp5/trunk/products/ERP5/tests/testBPMCore.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBPMCore.py?rev=28248&r1=28247&r2=28248&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBPMCore.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBPMCore.py [utf8] Mon Aug 3 15:57:46 2009
@@ -73,10 +73,11 @@
['accounting', 'delivery', 'invoicing', 'discount', 'tax', 'payment'])
@reindex
- def createBusinessProcess(self):
+ def createBusinessProcess(self, **kw):
module = self.portal.getDefaultModule(
portal_type=self.business_process_portal_type)
- return module.newContent(portal_type=self.business_process_portal_type)
+ return module.newContent(portal_type=self.business_process_portal_type,
+ **kw)
@reindex
def createBusinessPath(self, business_process=None, **kw):
More information about the Erp5-report
mailing list