gazette.cli

Provides commands used to initialize gazette websites.

Attributes

cli

Functions

add(...)

Adds a gazette instance to the database. For example:

import_editors(...)

Imports editors and groups. For example:

import_organizations(...)

Imports Organizations. For example:

import_categories(...)

Imports categories. For example:

import_issues(...)

Imports issues. For example:

import_sogc(...)

Imports from the SOGC. For example:

Module Contents

gazette.cli.cli[source]
gazette.cli.add(group_context: onegov.core.cli.core.GroupContext) collections.abc.Callable[[onegov.gazette.request.GazetteRequest, onegov.gazette.app.GazetteApp], None][source]

Adds a gazette instance to the database. For example:

onegov-gazette --select '/onegov_gazette/zug' add
gazette.cli.import_editors(group_context: onegov.core.cli.core.GroupContext, file: IO[bytes], clear: bool, dry_run: bool, locale: str) collections.abc.Callable[[onegov.gazette.request.GazetteRequest, onegov.gazette.app.GazetteApp], None][source]

Imports editors and groups. For example:

onegov-gazette --select '/onegov_gazette/zug' import-editors data.xlsx
gazette.cli.import_organizations(group_context: onegov.core.cli.core.GroupContext, file: IO[bytes], clear: bool, dry_run: bool, locale: str) collections.abc.Callable[[onegov.gazette.request.GazetteRequest, onegov.gazette.app.GazetteApp], None][source]

Imports Organizations. For example:

onegov-gazette --select '/onegov_gazette/zug' \
    import-organizations data.xlsx
gazette.cli.import_categories(group_context: onegov.core.cli.core.GroupContext, file: IO[bytes], clear: bool, dry_run: bool, locale: str) collections.abc.Callable[[onegov.gazette.request.GazetteRequest, onegov.gazette.app.GazetteApp], None][source]

Imports categories. For example:

onegov-gazette --select '/onegov_gazette/zug' \
    import-categories data.xlsx
gazette.cli.import_issues(group_context: onegov.core.cli.core.GroupContext, file: IO[bytes], clear: bool, dry_run: bool, locale: str, timezone: str | None) collections.abc.Callable[[onegov.gazette.request.GazetteRequest, onegov.gazette.app.GazetteApp], None][source]

Imports issues. For example:

onegov-gazette --select '/onegov_gazette/zug' import-issues data.xlsx
gazette.cli.import_sogc(group_context: onegov.core.cli.core.GroupContext, clear: bool, dry_run: bool) collections.abc.Callable[[onegov.gazette.request.GazetteRequest, onegov.gazette.app.GazetteApp], None][source]

Imports from the SOGC. For example:

onegov-gazette --select '/onegov_gazette/zug' import-sogc