gazette.cli
Provides commands used to initialize gazette websites.
Attributes
Functions
|
Adds a gazette instance to the database. For example: |
|
Imports editors and groups. For example: |
|
Imports Organizations. For example: |
|
Imports categories. For example: |
|
Imports issues. For example: |
|
Imports from the SOGC. For example: |
Module Contents
- 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