API Docs

Invenio standard theme.

class invenio_theme.ext.InvenioTheme(app=None, **kwargs)[source]

Invenio theme extension.

Extension initialization.

Parameters:
  • app – An instance of Flask.
  • **kwargs – Keyword arguments are passed to init_app method.
init_app(app, **kwargs)[source]

Initialize application object.

Parameters:app – An instance of Flask.
init_config(app)[source]

Initialize configuration.

Parameters:app – An instance of Flask.

Handlers

Invenio error handlers.

invenio_theme.views.index()[source]

Simplistic front page view.

invenio_theme.views.insufficient_permissions(e)[source]

Error handler to show a 403.html page in case of a 403 error.

invenio_theme.views.internal_error(e)[source]

Error handler to show a 500.html page in case of a 500 error.

invenio_theme.views.page_not_found(e)[source]

Error handler to show a 404.html page in case of a 404 error.

invenio_theme.views.too_many_requests(e)[source]

Error handler to show a 429.html page in case of a 429 error.

invenio_theme.views.unauthorized(e)[source]

Error handler to show a 401.html page in case of a 401 error.