def __init__( self, locale, parent, view_registry, this_module, child, backward_history=None, forward_history=None ): assert isinstance(child, view.View), repr(child) assert backward_history is None or is_list_inst(backward_history, this_module.item_type), repr(backward_history) assert forward_history is None or is_list_inst(forward_history, this_module.item_type), repr(forward_history) composite.Composite.__init__(self, parent) self._this_module = this_module self._locale = locale self._view_registry = view_registry self._backward_history = backward_history or [] # item_type list self._forward_history = forward_history or [] # item_type list self._child = child self._child.set_parent(self)
def __init__( self, history, this_module ): assert is_list_inst(history, this_module.item_type), repr(history) ListObject.__init__(self) self._this_module = this_module self._history = history