landsgemeinde.models.votum

Module Contents

Classes

Votum

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

Attributes

VotumState

STATES

landsgemeinde.models.votum.VotumState: typing_extensions.TypeAlias[source]
landsgemeinde.models.votum.STATES: dict[VotumState, translationstring.TranslationString][source]
class landsgemeinde.models.votum.Votum[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).

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)

property date: datetime.date[source]
property agenda_item_number: int[source]
property assembly: onegov.landsgemeinde.models.Assembly[source]
property person_details: str[source]
__tablename__ = 'landsgemeinde_vota'[source]
es_public = True[source]
es_properties[source]
id: Column[uuid.UUID][source]
state: Column[VotumState][source]
number: Column[int][source]
text: onegov.core.orm.mixins.dict_property[str | None][source]
motion: onegov.core.orm.mixins.dict_property[str | None][source]
statement_of_reasons: onegov.core.orm.mixins.dict_property[str | None][source]
person_name: Column[str | None][source]
person_function: Column[str | None][source]
person_place: Column[str | None][source]
person_political_affiliation: Column[str | None][source]
person_picture: Column[str | None][source]
agenda_item_id: Column[uuid.UUID][source]
agenda_item: relationship[AgendaItem][source]