pas.views.data_import

Attributes

log

Classes

ImportCategoryResult

dict() -> new empty dictionary

Functions

load_and_concatenate_json(→ list[Any])

Loads and concatenates the 'results' list from multiple JSON files.

handle_data_import(...)

Module Contents

class pas.views.data_import.ImportCategoryResult[source]

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

created: list[Any][source]
updated: list[Any][source]
processed: int[source]
pas.views.data_import.log[source]
pas.views.data_import.load_and_concatenate_json(sources: collections.abc.Sequence[onegov.core.types.LaxFileDict]) list[Any][source]

Loads and concatenates the ‘results’ list from multiple JSON files.

pas.views.data_import.handle_data_import(self: onegov.org.models.Organisation, request: onegov.town6.request.TownRequest, form: onegov.pas.forms.data_import.DataImportForm) onegov.core.types.RenderData | webob.Response[source]