pas.models.commission

Module Contents

Classes

Commission

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

Attributes

CommissionType

TYPES

pas.models.commission.CommissionType: typing_extensions.TypeAlias[source]
pas.models.commission.TYPES: dict[CommissionType, str][source]
class pas.models.commission.Commission[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.ContentMixin, onegov.core.orm.mixins.TimestampMixin, onegov.search.ORMSearchable

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: str[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 title: str[source]
property type_label: str[source]
__tablename__ = 'pas_commissions'[source]
es_public = False[source]
es_properties[source]
id: Column[uuid.UUID][source]
name: Column[str][source]
start: Column[date | None][source]
end: Column[date | None][source]
type: Column[CommissionType][source]
description[source]
memberships: relationship[list[CommissionMembership]][source]
memberships[source]
attendences: relationship[list[Attendence]][source]