Beispiel #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)
Beispiel #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
Beispiel #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
Beispiel #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)
Beispiel #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)