agency.cli

Attributes

cli

Functions

consolidate_cli(...)

Consolidates double entries of person objects based on the property

import_bs_function(...)

import_bs_data_files(...)

Usage:

import_lu_data_files(...)

Usage:

create_pdf(...)

export_xlsx(...)

enable_yubikey(...)

disable_yubikey(...)

Module Contents

agency.cli.cli[source]
agency.cli.consolidate_cli(based_on: str, ignore_case: bool, dry_run: bool, verbose: bool) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]

Consolidates double entries of person objects based on the property based_on. Property must be convertible to string.

agency.cli.import_bs_function(agency_file: str, people_file: str, dry_run: bool) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]
agency.cli.import_bs_data_files(agency_file: str, people_file: str, dry_run: bool, clean: bool) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]

Usage:

onegov-agency –select /onegov_agency/bs import-bs-data $agency_file $people_file

agency.cli.import_lu_data_files(data_file: str, dry_run: bool, clean: bool) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]

Usage:

onegov-agency –select /onegov_agency/lu import-lu-data $people_file

agency.cli.create_pdf(group_context: onegov.core.cli.core.GroupContext, root: bool, recursive: bool) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]
agency.cli.export_xlsx(group_context: onegov.core.cli.core.GroupContext, people: bool) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]
agency.cli.enable_yubikey(group_context: onegov.core.cli.core.GroupContext) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]
agency.cli.disable_yubikey(group_context: onegov.core.cli.core.GroupContext) collections.abc.Callable[[onegov.agency.request.AgencyRequest, onegov.agency.app.AgencyApp], None][source]