landsgemeinde.models.assembly

Attributes

AssemblyState

STATES

Classes

Assembly

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

Module Contents

landsgemeinde.models.assembly.AssemblyState: typing_extensions.TypeAlias[source]
landsgemeinde.models.assembly.STATES: dict[AssemblyState, translationstring.TranslationString][source]
class landsgemeinde.models.assembly.Assembly[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.StartTimeMixin

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_assemblies'[source]
es_public = True[source]
es_properties[source]
property es_suggestion: tuple[str, Ellipsis][source]

Returns suggest-as-you-type value of the document. The field used for this property should also be indexed, or the suggestion will lead to nowhere.

If a single string is returned, the completion input equals the completion output. (My Title -> My Title)

If an array of strings is returned, all values are possible inputs and the first value is the output. (My Title/Title My -> My Title)

id: Column[uuid.UUID][source]
state: Column[AssemblyState][source]
date: Column[date_t][source]
extraordinary: Column[bool][source]
video_url: Column[str | None][source]
memorial_pdf[source]
memorial_2_pdf[source]
memorial_supplement_pdf[source]
protocol_pdf[source]
audio_mp3[source]
audio_zip[source]
overview: onegov.core.orm.mixins.dict_property[str | None][source]
agenda_items: relationship[list[AgendaItem]][source]
last_modified: Column[datetime | None][source]
stamp() None[source]