Homec4science

InvenioUpgrader: partial fix for SQLAlchemy init

Authored by Lars Holm Nielsen <lars.holm.nielsen@cern.ch> on Feb 13 2013, 17:30.

Description

InvenioUpgrader: partial fix for SQLAlchemy init

  • InvenioUpgrader imports pluginutils which imports webinterface_handler which in the end results in an SQLAlchemy model being imported. The model then raises an exception due to the SQLAlchemy engine not being initialized. This partial fix ensures the engine is initialized by loading invenio.flaskshell. However, 'make check-upgrade' will not work for non-SQLAlchemy based installations, but will nonetheless report this.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Feb 18 2013, 13:07
Parents
R3600:256f28e4aeff: WebSearch: add download graph to record blueprint
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:aa59bfdd5125: InvenioUpgrader: partial fix for SQLAlchemy init (authored by Lars Holm Nielsen <lars.holm.nielsen@cern.ch>).Feb 18 2013, 13:07