gazette.cli

Provides commands used to initialize gazette websites.

Attributes

cli

Functions

add(→ Callable[[GazetteRequest, GazetteApp], None])

Adds a gazette instance to the database. For example:

import_editors(→ Callable[[GazetteRequest, ...)

Imports editors and groups. For example:

import_organizations(→ Callable[[GazetteRequest, ...)

Imports Organizations. For example:

import_categories(→ Callable[[GazetteRequest, ...)

Imports categories. For example:

import_issues(→ Callable[[GazetteRequest, GazetteApp], ...)

Imports issues. For example:

import_sogc(→ Callable[[GazetteRequest, GazetteApp], None])

Imports from the SOGC. For example:

Module Contents

gazette.cli.cli[source]
gazette.cli.add(group_context: onegov.core.cli.core.GroupContext) Callable[[GazetteRequest, 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) Callable[[GazetteRequest, 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) Callable[[GazetteRequest, 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) Callable[[GazetteRequest, 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) Callable[[GazetteRequest, 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) Callable[[GazetteRequest, GazetteApp], None][source]

Imports from the SOGC. For example:

onegov-gazette –select ‘/onegov_gazette/zug’ import-sogc