module timelinelib.db.strategies

class timelinelib.db.strategies.DefaultContainerStrategy[source]

Bases: timelinelib.db.interface.ContainerStrategy

__init__(container)[source]

Initialize self. See help(type(self)) for accurate signature.

register_subevent(subevent)[source]

Return the event with the latest end time.

unregister_subevent(subevent)[source]

Return the event with the latest end time.

update(subevent)[source]

Update container properties when adding a new sub-event.

allow_ends_today_on_subevents()[source]

Allow to set the ends-today attribute on container subevents

class timelinelib.db.strategies.ExtendedContainerStrategy[source]

Bases: timelinelib.db.strategies.DefaultContainerStrategy

register_subevent(subevent)[source]

Return the event with the latest end time.

allow_ends_today_on_subevents()[source]

Allow to set the ends-today attribute on container subevents