org.models.meeting_item

Classes

MeetingItem

Extends the default Searchable class with sensible defaults

MeetingItemCollection

Abstract base class for generic types.

Module Contents

class org.models.meeting_item.MeetingItem[source]

Bases: onegov.core.orm.Base, onegov.search.ORMSearchable

Extends the default Searchable class with sensible defaults for SQLAlchemy orm models.

__tablename__ = 'par_meeting_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]
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 es_last_change: datetime.datetime | None[source]

Returns the date the document was created/last modified.

id: sqlalchemy.Column[uuid.UUID][source]
title: sqlalchemy.Column[str][source]
number: sqlalchemy.Column[str | None][source]
political_business_id: sqlalchemy.Column[uuid.UUID | None][source]
political_business: sqlalchemy.orm.relationship[onegov.org.models.PoliticalBusiness | None][source]
meeting_id: sqlalchemy.Column[uuid.UUID][source]
meeting: sqlalchemy.orm.relationship[onegov.org.models.Meeting][source]
property display_name: str[source]
__repr__() str[source]
class org.models.meeting_item.MeetingItemCollection(session: sqlalchemy.orm.Session, **kwargs: Any)[source]

Bases: onegov.core.collection.GenericCollection[MeetingItem]

Abstract base class for generic types.

A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:

class Mapping(Generic[KT, VT]):
    def __getitem__(self, key: KT) -> VT:
        ...
    # Etc.

This class can then be used as follows:

def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
    try:
        return mapping[key]
    except KeyError:
        return default
property model_class: type[MeetingItem][source]
query() sqlalchemy.orm.Query[MeetingItem][source]