swissvotes.path

Functions

get_principal(→ onegov.swissvotes.models.Principal)

get_auth(→ onegov.user.Auth)

get_locale(→ onegov.core.i18n.SiteLocale | None)

get_votes(...)

get_vote(→ onegov.swissvotes.models.SwissVote | None)

get_attachment(...)

get_pages(...)

get_page(...)

get_page_move(...)

Module Contents

swissvotes.path.get_principal(app: onegov.swissvotes.app.SwissvotesApp) onegov.swissvotes.models.Principal[source]
swissvotes.path.get_auth(request: onegov.swissvotes.request.SwissvotesRequest, to: str = '/') onegov.user.Auth[source]
swissvotes.path.get_locale(app: onegov.swissvotes.app.SwissvotesApp, locale: str) onegov.core.i18n.SiteLocale | None[source]
swissvotes.path.get_votes(app: onegov.swissvotes.app.SwissvotesApp, page: int = 0, from_date: date | None = None, to_date: date | None = None, legal_form: list[int] | None = None, result: list[int] | None = None, policy_area: list[str] | None = None, term: str | None = None, full_text: bool | None = None, position_federal_council: list[int] | None = None, position_national_council: list[int] | None = None, position_council_of_states: list[int] | None = None, sort_by: str | None = None, sort_order: str | None = None) onegov.swissvotes.collections.SwissVoteCollection[source]
swissvotes.path.get_vote(app: onegov.swissvotes.app.SwissvotesApp, bfs_number: str, term: str | None = None) onegov.swissvotes.models.SwissVote | None[source]
swissvotes.path.get_attachment(app: onegov.swissvotes.app.SwissvotesApp, id: str) onegov.swissvotes.models.SwissVoteFile | None[source]
swissvotes.path.get_pages(app: onegov.swissvotes.app.SwissvotesApp) onegov.swissvotes.collections.TranslatablePageCollection[source]
swissvotes.path.get_page(app: onegov.swissvotes.app.SwissvotesApp, id: str) onegov.swissvotes.models.TranslatablePage | None[source]
swissvotes.path.get_page_move(app: onegov.swissvotes.app.SwissvotesApp, subject_id: str, direction: onegov.core.orm.abstract.MoveDirection, target_id: str) onegov.swissvotes.models.TranslatablePageMove[source]