assembl.models.timeline module

Models for a timeline of the conversation. Unused as of yet.

class assembl.models.timeline.DiscussionMilestone(**kwargs)[source]

Bases: assembl.models.timeline.TimelineEvent

This is a point in time, not an interval.

identifier

An identifier for front-end semantics

class assembl.models.timeline.DiscussionPhase(**kwargs)[source]

Bases: assembl.models.timeline.TimelineEvent

A phase of the discussion. Ideally, the discussion should always be in one and only one phase, so they should ideally not overlap, though this is not enforced.

identifier

An identifier for front-end semantics

class assembl.models.timeline.DiscussionSession(**kwargs)[source]

Bases: assembl.models.timeline.TimelineEvent

A session within the discussion, such as creativity or vote. It may overlap with phases.

identifier

An identifier for front-end semantics

class assembl.models.timeline.TimelineEvent(**kwargs)[source]

Bases: assembl.models.DiscussionBoundBase

Abstract event that will be shown in the timeline.

classmethod get_discussion_conditions(discussion_id, alias_maker=None)[source]

Returns a list of SQLA expressions that constrain a query on this class to a given discussion.

get_discussion_id()[source]

Get the ID of an associated discussion object, if any.

identifier

An identifier for front-end semantics

populate_from_context(context)[source]

If object created in this context, populate some relations from that context.

This is the magic fallback, ideally define the relationships you want populated explicitly in subclasses of this.