landsgemeinde.models.suggestion =============================== .. py:module:: landsgemeinde.models.suggestion Classes ------- .. autoapisummary:: landsgemeinde.models.suggestion.Suggestion landsgemeinde.models.suggestion.PersonNameSuggestion landsgemeinde.models.suggestion.PersonFunctionSuggestion landsgemeinde.models.suggestion.PersonPlaceSuggestion landsgemeinde.models.suggestion.PersonPoliticalAffiliationSuggestion Module Contents --------------- .. py:class:: Suggestion(session: sqlalchemy.orm.Session, term: str | None = '') Provide suggestions based on entries in the directory of persons and past vota. .. py:attribute:: session .. py:attribute:: term :value: '' .. py:attribute:: limit :value: 5 .. py:property:: votum_expression :type: sqlalchemy.sql.ColumnElement[str] | sqlalchemy.sql.ColumnElement[str | None] :abstractmethod: .. py:property:: person_expressions :type: tuple[sqlalchemy.sql.ColumnElement[str] | sqlalchemy.sql.ColumnElement[str | None], Ellipsis] :abstractmethod: .. py:method:: query() -> list[str] .. py:class:: PersonNameSuggestion(session: sqlalchemy.orm.Session, term: str | None = '') Bases: :py:obj:`Suggestion` Provide suggestions based on entries in the directory of persons and past vota. .. py:property:: votum_expression :type: sqlalchemy.sql.ColumnElement[str | None] .. py:property:: person_expressions :type: tuple[sqlalchemy.sql.ColumnElement[str]] .. py:class:: PersonFunctionSuggestion(session: sqlalchemy.orm.Session, term: str | None = '') Bases: :py:obj:`Suggestion` Provide suggestions based on entries in the directory of persons and past vota. .. py:property:: votum_expression :type: sqlalchemy.sql.ColumnElement[str | None] .. py:property:: person_expressions :type: tuple[sqlalchemy.sql.ColumnElement[str | None], Ellipsis] .. py:class:: PersonPlaceSuggestion(session: sqlalchemy.orm.Session, term: str | None = '') Bases: :py:obj:`Suggestion` Provide suggestions based on entries in the directory of persons and past vota. .. py:property:: votum_expression :type: sqlalchemy.sql.ColumnElement[str | None] .. py:property:: person_expressions :type: tuple[sqlalchemy.sql.ColumnElement[str | None], Ellipsis] .. py:class:: PersonPoliticalAffiliationSuggestion(session: sqlalchemy.orm.Session, term: str | None = '') Bases: :py:obj:`Suggestion` Provide suggestions based on entries in the directory of persons and past vota. .. py:property:: votum_expression :type: sqlalchemy.sql.ColumnElement[str | None] .. py:property:: person_expressions :type: tuple[sqlalchemy.sql.ColumnElement[str | None], Ellipsis]