Commit 07232094 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

output more information if NotImplementedError happens in case of compensation needed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 978725cd
...@@ -414,7 +414,7 @@ class Rule(Predicate, XMLObject): ...@@ -414,7 +414,7 @@ class Rule(Predicate, XMLObject):
break break
else: else:
# no modifiable movement was found, need to compensate by quantity # no modifiable movement was found, need to compensate by quantity
raise NotImplementedError('Need to generate quantity compensation') raise NotImplementedError('Need to generate quantity compensation in %s, because all matched movements are immutable : %r.' % (applied_rule.getRelativeUrl(), [x.getRelativeUrl() for x in p_matched_list]))
for movement in p_matched_list: for movement in p_matched_list:
if movement in (mutable_movement_list \ if movement in (mutable_movement_list \
......
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