Ejemplo n.º 1
0
 def __init__(self, time_type, start_time, end_time, text, category=None,
              cid=-1):
     Event.__init__(self, time_type, start_time, end_time, text, category,
                    False, False, False)
     self.container_id = cid
     self.events = []
     self.strategy = DefaultContainerStrategy(self)
Ejemplo n.º 2
0
 def __init__(self, time_type, start_time, end_time, text, category=None,
              container=None, cid=-1):
     Event.__init__(self, time_type, start_time, end_time, text, category,
                    False, False, False)
     self.container = container
     if self.container != None:
         self.container_id = self.container.cid()
     else:
         self.container_id = cid
Ejemplo n.º 3
0
 def __init__(self,
              time_type,
              start_time,
              end_time,
              text,
              category=None,
              container=None,
              cid=-1):
     Event.__init__(self, time_type, start_time, end_time, text, category,
                    False, False, False)
     self.container = container
     if self.container != None:
         self.container_id = self.container.cid()
     else:
         self.container_id = cid
Ejemplo n.º 4
0
 def update_period_o(self, new_period):
     """Overrides parent method."""
     Event.update_period(self, new_period.start_time, new_period.end_time)
     self.container.update_container(self)
Ejemplo n.º 5
0
 def update_period_o(self, new_period):
     """Overrides parent method."""
     Event.update_period(self, new_period.start_time, new_period.end_time)
     self.container.update_container(self)