org.models.meeting

Classes

Meeting

Extends any class that has a meta dictionary field with the ability to

MeetingCollection

Abstract base class for generic types.

Module Contents

class org.models.meeting.Meeting[source]

Bases: onegov.org.models.extensions.AccessExtension, onegov.file.MultiAssociatedFiles, onegov.core.orm.Base, onegov.core.orm.mixins.ContentMixin, onegov.org.models.extensions.GeneralFileLinkExtension, onegov.search.ORMSearchable

Extends any class that has a meta dictionary field with the ability to set one of the following access levels:

  • ‘public’ - The default, the model is listed and accessible.

  • ‘private’ - Neither listed nor accessible, except administrators

    and editors.

  • ‘member’ - Neither listed nor accessible except administrators, editors

    and members.

  • ‘secret’ - Not listed, but available for anyone that knows the URL.

  • ‘mtan’ - The model is listed but only accessible once an mTAN has been

    sent to the person and entered correctly.

  • ‘secret_mtan’ - Not listed and only accessible once an mTAN has been

    sent to the person and entered correctly.

see onegov.core.security.rules.has_permission_not_logged_in()

__tablename__ = 'par_meetings'[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: list[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.

property title_text: str[source]
property display_name: str[source]
id: sqlalchemy.Column[uuid.UUID][source]
title: sqlalchemy.Column[str][source]
start_datetime: sqlalchemy.Column[datetime.datetime | None][source]
end_datetime: sqlalchemy.Column[datetime.datetime | None][source]
address: sqlalchemy.Column[markupsafe.Markup][source]
description: sqlalchemy.Column[markupsafe.Markup | None][source]
political_business_id: sqlalchemy.Column[uuid.UUID | None][source]
political_businesses: sqlalchemy.orm.RelationshipProperty[onegov.org.models.PoliticalBusiness][source]
meeting_items: sqlalchemy.orm.relationship[list[onegov.org.models.MeetingItem]][source]
past()[source]
__repr__() str[source]
class org.models.meeting.MeetingCollection(session: sqlalchemy.orm.Session, past: bool | None = None)[source]

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

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
past = None[source]
property title: str[source]
property model_class: type[Meeting][source]
query() sqlalchemy.orm.Query[MeetingCollection.query.Meeting][source]
for_filter(past: bool | None = None) Self[source]