Commit 48c287a5 authored by Jérome Perrin's avatar Jérome Perrin

force=1 is not part of simulation API anymore


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abe4ada1
......@@ -64,7 +64,7 @@ class EmploymentContract(SubscriptionItem):
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.
......
......@@ -272,7 +272,7 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
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(PropertyRecordableMixin, Movement, ExplainableMixin):
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:
......
......@@ -72,7 +72,7 @@ class SubscriptionItem(Item, MovementGeneratorMixin, PeriodicityMixin):
)
# 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.
......
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