Commit 7834541c authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added comments with TODO and request for better comments.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27513 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58a83b44
...@@ -39,6 +39,11 @@ import zope.interface ...@@ -39,6 +39,11 @@ import zope.interface
class TradeModelLine(Predicate, XMLMatrix, Amount): class TradeModelLine(Predicate, XMLMatrix, Amount):
"""Trade Model Line is a way to represent trade transformation for movements """Trade Model Line is a way to represent trade transformation for movements
TODO:
- make this code readable
- use comments
- use docstrings
""" """
meta_type = 'ERP5 Trade Model Line' meta_type = 'ERP5 Trade Model Line'
portal_type = 'Trade Model Line' portal_type = 'Trade Model Line'
...@@ -94,6 +99,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -94,6 +99,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
if movement_list is None: if movement_list is None:
movement_list = [] movement_list = []
# XXX - really unreadable - more comments please
if len(movement_list) == 0: if len(movement_list) == 0:
if context.getPortalType() == 'Applied Rule': if context.getPortalType() == 'Applied Rule':
movement_list = [context.getParentValue()] movement_list = [context.getParentValue()]
......
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