Commit 1c42b57c authored by Jérome Perrin's avatar Jérome Perrin

fix a few typos


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44183 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae2ee162
...@@ -200,7 +200,7 @@ class RuleMixin(Predicate): ...@@ -200,7 +200,7 @@ class RuleMixin(Predicate):
At expand time, we must replace or compensate certain At expand time, we must replace or compensate certain
properties. However, if some properties were overwritten properties. However, if some properties were overwritten
by a decision (ie. a resource if changed), then we by a decision (ie. a resource is changed), then we
should not try to compensate such a decision. should not try to compensate such a decision.
""" """
# Update movements # Update movements
...@@ -352,7 +352,7 @@ class RuleMixin(Predicate): ...@@ -352,7 +352,7 @@ class RuleMixin(Predicate):
decision_movement. decision_movement.
TODO: TODO:
- is this asumption appropriate ? - is this assumption appropriate ?
""" """
# Sample implementation - but it actually looks very generic # Sample implementation - but it actually looks very generic
# Case 1: movements which are not needed # Case 1: movements which are not needed
...@@ -436,7 +436,7 @@ class RuleMixin(Predicate): ...@@ -436,7 +436,7 @@ class RuleMixin(Predicate):
# Not Frozen can be updated # Not Frozen can be updated
kw = {} kw = {}
for tester in updating_tester_list: for tester in updating_tester_list:
if not tester.compare(prevision_movement, decision_movement): if not tester.compare(prevision_movement, decision_movement):
# Only update those updatable properties which are not recorded # Only update those updatable properties which are not recorded
kw_candidate = tester.getUpdatablePropertyDict(prevision_movement, kw_candidate = tester.getUpdatablePropertyDict(prevision_movement,
decision_movement) decision_movement)
...@@ -445,7 +445,7 @@ class RuleMixin(Predicate): ...@@ -445,7 +445,7 @@ class RuleMixin(Predicate):
if decision_movement.isPropertyRecorded(property_key): if decision_movement.isPropertyRecorded(property_key):
del kw_candidate[property_key] del kw_candidate[property_key]
kw.update(kw_candidate) kw.update(kw_candidate)
# XXX-JPS - there is a risk here that quanity is wrongly updated # XXX-JPS - there is a risk here that quantity is wrongly updated
if kw: if kw:
movement_collection_diff.addUpdatableMovement(decision_movement, kw) movement_collection_diff.addUpdatableMovement(decision_movement, kw)
# Second, we calculate if the total quantity is the same on both sides # Second, we calculate if the total quantity is the same on both sides
...@@ -471,3 +471,4 @@ class RuleMixin(Predicate): ...@@ -471,3 +471,4 @@ class RuleMixin(Predicate):
# We must create a profit and loss movement # We must create a profit and loss movement
new_movement = self._newProfitAndLossMovement(prevision_movement) new_movement = self._newProfitAndLossMovement(prevision_movement)
movement_collection_diff.addNewMovement(new_movement) movement_collection_diff.addNewMovement(new_movement)
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