landsgemeinde.models.agenda

Attributes

AgendaItemState

STATES

Classes

AgendaItem

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded

Module Contents

landsgemeinde.models.agenda.AgendaItemState: TypeAlias = Literal['scheduled', 'ongoing', 'completed'][source]
landsgemeinde.models.agenda.STATES: dict[AgendaItemState, translationstring.TranslationString][source]
class landsgemeinde.models.agenda.AgendaItem[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.ContentMixin, onegov.core.orm.mixins.TimestampMixin, onegov.file.AssociatedFiles, onegov.search.ORMSearchable, onegov.landsgemeinde.models.mixins.TimestampedVideoMixin

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).

__tablename__ = 'landsgemeinde_agenda_items'[source]
es_public = True[source]

Returns True if the model is available to be found by the public. If false, only editors/admins will see this object in the search results.

es_properties[source]

Returns the type mapping of this model. Each property in the mapping will be read from the model instance.

The returned object needs to be a dict or an object that provides a to_dict method.

Internally, onegov.search stores differing languages in different indices. It does this automatically through langauge detection, or by manually specifying a language.

Note that objects with multiple languages are not supported (each object is supposed to have exactly one language).

Onegov.search will automatically insert the right analyzer for types like these.

There’s currently only limited support for properties here, namely objects and nested mappings do not work! This is going to be added in the future though.

id: Column[uuid.UUID][source]
number: Column[int][source]
state: Column[AgendaItemState][source]
irrelevant: Column[bool][source]
tacitly_accepted: Column[bool][source]
assembly_id: Column[uuid.UUID][source]
assembly: relationship[Assembly][source]
title: Column[str][source]
memorial_pdf[source]
memorial_page: onegov.core.orm.mixins.dict_property[int | None][source]
overview[source]
text[source]
resolution[source]
resolution_tags: onegov.core.orm.mixins.dict_property[list[str] | None][source]
vota: relationship[list[Votum]][source]
last_modified[source]
stamp() None[source]
property date: datetime.date[source]
property title_parts: list[str][source]