org.initial_content
Functions
|
|
|
|
|
|
|
|
|
|
|
Yields the name, title and the form definition of all form definitions |
|
Loads the title and the form definition from the given file. |
|
|
|
|
|
Module Contents
- org.initial_content.create_new_organisation(app: onegov.org.app.OrgApp, name: str, create_files: bool = True, path: str | None = None, locale: str = 'de_CH') onegov.org.models.Organisation [source]
- org.initial_content.add_builtin_forms(session: sqlalchemy.orm.Session, definitions: Iterable[tuple[str, str, str]] | None = None, locale: str = 'de_CH') None [source]
- org.initial_content.builtin_form_definitions(path: StrPath | None = None, locale: str = 'de_CH') Iterator[tuple[str, str, str]] [source]
Yields the name, title and the form definition of all form definitions in the given or the default path.
- org.initial_content.load_definition(path: str) tuple[str, str] [source]
Loads the title and the form definition from the given file.
- org.initial_content.add_resources(libres_context: libres.context.core.Context, translate: Callable[[TranslationString], str]) None [source]