API Docs

invenio module for I-Form theme.

class invenio_theme_iform.ext.InvenioThemeIform(app=None)[source]

invenio-theme-iform extension.

Extension initialization.

init_app(app)[source]

Flask application initialization.

init_config(app)[source]

Initialize configuration.

invenio_theme_iform.ext.finalize_app(app)[source]

Finalize app.

invenio_theme_iform.ext.guard_view_functions(app)[source]

Guard view-functions against unauthenticated access.

invenio_theme_iform.ext.modify_user_dashboard(app)[source]

Modify user dashboard.

Views

invenio module for I-Form theme.

invenio_theme_iform.views.cast_to_dict(attr_dict)[source]

Return the dict structure of AttrDict variable.

invenio_theme_iform.views.create_blueprint(app: Flask) Blueprint[source]

Create blueprint.

invenio_theme_iform.views.current_identity_is_iform_authenticated() bool[source]

Checks whether current identity has iform-authentication.

NOTE: Default permission-policy has no field for iform_authenticated. Should the field not exist, the service checks against admin-permissions instead. You probably meant to configure a custom permission-policy.

invenio_theme_iform.views.default_error_handler(e: Exception)[source]

Called when an otherwise unhandled error occurs.

invenio_theme_iform.views.index()[source]

Frontpage.

invenio_theme_iform.views.locked(e)[source]

Error page for status locked.

invenio_theme_iform.views.make_dict_like(value: str, key: str) Dict[str, str][source]

Convert the value to a dict like structure.

in the form of a key -> value pair.

invenio_theme_iform.views.overview()[source]

Overview.

Search page ui.

With this route it is possible to override the default route “/search” to get to the rdm-records search. The default route will be overriden by the global search with changing the SEARCH_UI_SEARCH_TEMPLATE variable to the value “invenio_records_global_search/search/search.html” in the invenio.cfg file.

invenio_theme_iform.views.records_serializer(records=None)[source]

Serialize list of records.

invenio_theme_iform.views.require_iform_authenticated(view_func)[source]

Decorator for guarding view-functions against unauthenticated users.

Redirects un-authenticated users to their personal dashboard’s overview.