Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2009, 2010, 2011 Rickard Lindberg, Roger Lindberg 2 # 3 # This file is part of Timeline. 4 # 5 # Timeline is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # Timeline is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with Timeline. If not, see <http://www.gnu.org/licenses/>. 17 18 19 from timelinelib.db.objects.event import Event 20 21235824 - def __init__(self, time_type, start_time, end_time, text, category=None, 25 container=None, cid=-1):26 Event.__init__(self, time_type, start_time, end_time, text, category, 27 False, False, False) 28 self.container = container 29 if self.container != None: 30 self.container_id = self.container.cid() 31 else: 32 self.container_id = cid33 37 4143 """Overrides parent method.""" 44 Event.update_period(self, start_time, end_time) 45 self.container.update_container(self)4648 """Overrides parent method.""" 49 Event.update_period(self, new_period.start_time, new_period.end_time) 50 self.container.update_container(self)51 54
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 3 03:56:12 2013 | http://epydoc.sourceforge.net |