Invenio-Checker can be installed with the following steps:
Install this package:
pip install invenio-checker
Append
"invenio_checker"
tobase.config.PACKAGES
of your overlay.- Because there is currently no per-module way of declaring javascript requirements and shims, you will also have to append the ones required by
invenio-checker
to your overlay. Make the following modifications in your overlay's
base/static/js/settings.js
: - Torequire.config:paths
, append:"watable": "vendors/watable/jquery.watable", "bootstrap-datepicker-eyecon": "vendors/bootstrap-datepicker-eyecon/js/bootstrap-datepicker", "jqcron": "vendors/jqcron/src/jqCron", "jqcron.en": "vendors/jqcron/src/jqCron.en",
To
require.config:shim
, append:"watable": { deps: ["jquery", "bootstrap"], exports: "$.fn.WATable" }, "bootstrap-datepicker-eyecon": { deps: ["jquery", "bootstrap"], exports: "$.fn.datepicker" }, "jqcron.en": { deps: ["jquery", "jqcron"], }, "jqcron": { deps: ["jquery"], exports: "$.fn.jqCron" },
- Because there is currently no per-module way of declaring javascript requirements and shims, you will also have to append the ones required by
To enable the scheduler, add the following to your overlay's
config.py
:
CELERYBEAT_SCHEDULE = {} # If name not already defined in scope
from invenio_checker.config import CHECKER_CELERYBEAT_SCHEDULE
CELERYBEAT_SCHEDULE.update(CHECKER_CELERYBEAT_SCHEDULE)