Commit 76ba15cd authored by Łukasz Nowak's avatar Łukasz Nowak

- formatting


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3956615b
...@@ -435,8 +435,10 @@ class GenericRuleTestsMixin: ...@@ -435,8 +435,10 @@ class GenericRuleTestsMixin:
def _split(self): def _split(self):
"""Invoke manual splitting""" """Invoke manual splitting"""
ratio = .5 # hardcoded value, hopefully float friendly ratio = .5 # hardcoded value, hopefully float friendly
applied_rule = self.root_document.getCausalityRelatedValue(portal_type='Applied Rule') applied_rule = self.root_document.getCausalityRelatedValue(
for movement in applied_rule.contentValues(portal_type='Simulation Movement'): portal_type='Applied Rule')
for movement in applied_rule.contentValues(
portal_type='Simulation Movement'):
new_movement = movement.Base_createCloneDocument(batch_mode=1) new_movement = movement.Base_createCloneDocument(batch_mode=1)
old_quantity = movement.getQuantity() old_quantity = movement.getQuantity()
movement.edit( movement.edit(
......
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