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