adhocracy_core.scripts package

scripts.

import_resources(root: <InterfaceClass adhocracy_core.interfaces.IResource>, registry: pyramid.registry.Registry, filename: str)[source]

Import resources from a JSON file with dummy god user.

import_local_roles(context: <InterfaceClass adhocracy_core.interfaces.IResource>, registry: pyramid.registry.Registry, filename: str)[source]

Import/set local roles from a JSON file.

append_cvs_field(result: list, content: str)[source]

Normalize and append content for CVS.

normalize_text_for_cvs(s: str) → str[source]

Normalize text to put it in CVS.

get_sheet_field_for_partial(sheet: <InterfaceClass adhocracy_core.interfaces.ISheet>, field: str, resource: <InterfaceClass adhocracy_core.interfaces.IResource>) → object[source]

Get sheet field with resource as last parameter to use with partial.

import_fixture(asset: str, root: <InterfaceClass adhocracy_core.interfaces.IPool>, registry: pyramid.registry.Registry, log_only=False, print_stdout=True)[source]

Import files in fixture directory defined by asset .