[Erp5-report] r44228 jerome - /erp5/trunk/products/ERP5/Document/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 14 11:31:08 CET 2011


Author: jerome
Date: Mon Mar 14 11:31:08 2011
New Revision: 44228

URL: http://svn.erp5.org?rev=44228&view=rev
Log:
force=1 is not part of simulation API anymore

Modified:
    erp5/trunk/products/ERP5/Document/EmploymentContract.py
    erp5/trunk/products/ERP5/Document/SimulationMovement.py
    erp5/trunk/products/ERP5/Document/SubscriptionItem.py

Modified: erp5/trunk/products/ERP5/Document/EmploymentContract.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/EmploymentContract.py?rev=44228&r1=44227&r2=44228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/EmploymentContract.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/EmploymentContract.py [utf8] Mon Mar 14 11:31:08 2011
@@ -64,7 +64,7 @@ class EmploymentContract(SubscriptionIte
     movement_id = 'movement_%s_%s' % (start_date.year(), start_date.month())
     return len(applied_rule.searchFolder(id=movement_id))
 
-  def expandOpenOrderRule(self, applied_rule, force=0, **kw):
+  def expandOpenOrderRule(self, applied_rule, **kw):
     """
       Expand tries to find all applicable supply path and all
       applicable transformations.

Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=44228&r1=44227&r2=44228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Mon Mar 14 11:31:08 2011
@@ -272,7 +272,7 @@ class SimulationMovement(PropertyRecorda
         transaction.get().addBeforeCommitHook(before_commit)
 
   security.declareProtected(Permissions.ModifyPortalContent, 'expand')
-  def expand(self, force=0, **kw):
+  def expand(self, **kw):
     """
     Checks all existing applied rules and make sure they still apply.
     Checks for other possible rules and starts expansion process (instanciates
@@ -316,7 +316,7 @@ class SimulationMovement(PropertyRecorda
     self.setCausalityState('expanded')
     # expand
     for applied_rule in applied_rule_dict.itervalues():
-      applied_rule.expand(force=force, **kw)
+      applied_rule.expand(**kw)
 
     # disable and clear cache
     if not cache_enabled:

Modified: erp5/trunk/products/ERP5/Document/SubscriptionItem.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SubscriptionItem.py?rev=44228&r1=44227&r2=44228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SubscriptionItem.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SubscriptionItem.py [utf8] Mon Mar 14 11:31:08 2011
@@ -72,7 +72,7 @@ class SubscriptionItem(Item, MovementGen
                            )
 
   # IExpandable interface implementation
-  def expand(self, applied_rule_id=None, force=0, activate_kw=None, **kw):
+  def expand(self, applied_rule_id=None, activate_kw=None, **kw):
     """
       Lookup start / stop properties in related Open Order
       or Path and expand.



More information about the Erp5-report mailing list