Commit ec4589b2 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Provide default value for private variables. Fixed missing self.

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf30150a
......@@ -38,6 +38,11 @@ class MovementGeneratorMixin:
Deliveries ? Movements ? Items ?
Does it depend by default on IAmountGeneratorMixin
"""
# Default values
_applied_rule = None
_rule = None
_trade_phase_list = None
def __init__(self, applied_rule=None, rule=None, trade_phase_list=None):
self._trade_phase_list = trade_phase_list # XXX
self._applied_rule = applied_rule
......@@ -47,7 +52,7 @@ class MovementGeneratorMixin:
self._rule = rule # for rule specific stuff
# Implementation of IMovementGenerator
def getGeneratedMovementList(movement_list=None, rounding=False):
def getGeneratedMovementList(self, movement_list=None, rounding=False):
"""
Returns an IMovementList generated by a model applied to the context
......
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