Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 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.canvas.data.event import Event 20 from timelinelib.canvas.data.immutable import ImmutableEvent 21 from timelinelib.features.experimental.experimentalfeatures import EXTENDED_CONTAINER_STRATEGY 22 23257027 Event.__init__(self, db=db, id_=id_, immutable_value=immutable_value) 28 if not EXTENDED_CONTAINER_STRATEGY.enabled(): 29 self.locked = False3032 with self._db.transaction("Save event"): 33 if save_all_subevents and self.container is not None: 34 for subevent in self.container.subevents: 35 subevent.db = self.container.db 36 subevent.save(save_all_subevents=False) 37 else: 38 Event.save(self) 39 return self40 44 47 51 55 5961 return self._immutable_value.time_period6264 self._immutable_value = self._immutable_value.update(time_period=time_period) 65 if self.container is not None: 66 self.container.update_container(self) 67 return self68 69 time_period = property(get_time_period, set_time_period)
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 23 01:55:31 2020 | http://epydoc.sourceforge.net |