module timelinelib.canvas.data.memorydb.db¶
-
timelinelib.canvas.data.memorydb.db.
STATE_CHANGE_CATEGORY
= 1¶
-
timelinelib.canvas.data.memorydb.db.
STATE_CHANGE_ANY
= 2¶
-
class
timelinelib.canvas.data.memorydb.db.
MemoryDB
[source]¶ Bases:
timelinelib.general.observer.Observable
-
property
now
¶
-
property
all_milestones
¶
-
get_displayed_period
()[source]¶ Inheritors can call this method to get the displayed period used in load_view_properties and save_view_properties.
-
set_displayed_period
(period)[source]¶ Inheritors can call this method to set the displayed period used in load_view_properties and save_view_properties.
-
get_start_and_end_for_all_visible_events
(filter_function)[source]¶ The events collection contains milestone events as well as ordinary events. The self.get_first_event function only consider ordinary events, so if there is only milestone events in the timeline the test
len(events) > 0
will pass, but the self.get_first_event will return None. TODO: Decide if milestone events should be included in this function?
-
property