예제 #1
0
 def __init__(self, *args, **kwargs):
     self._event_system = None
     Variable.__init__(self, *args, **kwargs)
     if self.event is not None:
         self.event.hook("start-tracking-changes", self._start_tracking)
         self.event.hook("object-deleted", self._detect_changes_and_stop)
예제 #2
0
 def __init__(self, get_map, set_map, *args, **kwargs):
     self._get_map = get_map
     self._set_map = set_map
     Variable.__init__(self, *args, **kwargs)
예제 #3
0
 def __init__(self, *args, **kwargs):
     self._event_system = None
     Variable.__init__(self, *args, **kwargs)
     if self.event is not None:
         self.event.hook("start-tracking-changes", self._start_tracking)
         self.event.hook("object-deleted", self._detect_changes_and_stop)
예제 #4
0
 def __init__(self, get_map, set_map, *args, **kwargs):
     self._get_map = get_map
     self._set_map = set_map
     Variable.__init__(self, *args, **kwargs)
예제 #5
0
 def __init__(self, item_factory, *args, **kwargs):
     self._item_factory = item_factory
     Variable.__init__(self, *args, **kwargs)
     if self.event:
         self.event.hook("flush", self._detect_changes)
         self.event.hook("object-deleted", self._detect_changes)
예제 #6
0
 def __init__(self, item_factory, *args, **kwargs):
     self._item_factory = item_factory
     Variable.__init__(self, *args, **kwargs)
     if self.event:
         self.event.hook("flush", self._detect_changes)
         self.event.hook("object-deleted", self._detect_changes)