activity.models.activity
Attributes
Classes
Describes an activity that is made available to participants on |
Module Contents
- activity.models.activity.ActivityState: TypeAlias = Literal['preview', 'proposed', 'accepted', 'archived'][source]
- activity.models.activity.ACTIVITY_STATES: tuple[ActivityState, Ellipsis] = ('preview', 'proposed', 'accepted', 'archived')[source]
- class activity.models.activity.Activity[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
Describes an activity that is made available to participants on certain occasions (i.e. dates).
The activity describes the what’s going on, the occasion describes when and with whom.
- lead: dict_property[str | None][source]
- thumbnail: dict_property[str | None][source]
- publication_requests: relationship[list[PublicationRequest]][source]
- create_publication_request(period: onegov.activity.models.period.Period, **kwargs: Any) onegov.activity.models.PublicationRequest [source]
- property requests: onegov.activity.collections.publication_request.PublicationRequestCollection[source]
- property latest_request: PublicationRequest | None[source]
- request_by_period(period: Period | PeriodMeta | None) PublicationRequest | None [source]
- has_occasion_in_period(period: Period | PeriodMeta) bool [source]