diff --git a/invenio_records/api.py b/invenio_records/api.py index efd07cbb..4fb72441 100644 --- a/invenio_records/api.py +++ b/invenio_records/api.py @@ -26,7 +26,7 @@ from invenio_base.globals import cfg from invenio_base.helpers import unicodifier from invenio_base.utils import toposort_send -from invenio.ext.sqlalchemy import db +from invenio_ext.sqlalchemy import db from invenio.utils.datastructures import SmartDict from .models import RecordMetadata diff --git a/invenio_records/bundles.py b/invenio_records/bundles.py index 3f52eafd..86e32aa9 100644 --- a/invenio_records/bundles.py +++ b/invenio_records/bundles.py @@ -21,7 +21,7 @@ from __future__ import unicode_literals -from invenio.ext.assets import Bundle, RequireJSFilter +from invenio_ext.assets import Bundle, RequireJSFilter js = Bundle( "js/records/init.js", diff --git a/invenio_records/manage.py b/invenio_records/manage.py index ca52bc90..23563200 100644 --- a/invenio_records/manage.py +++ b/invenio_records/manage.py @@ -28,7 +28,7 @@ from flask import current_app from werkzeug.utils import import_string -from invenio.ext.script import Manager +from invenio_ext.script import Manager manager = Manager(usage=__doc__) diff --git a/invenio_records/models.py b/invenio_records/models.py index 9af3fdf6..980bdcb2 100644 --- a/invenio_records/models.py +++ b/invenio_records/models.py @@ -25,7 +25,7 @@ from sqlalchemy.schema import Index from werkzeug import cached_property -from invenio.ext.sqlalchemy import db, utils +from invenio_ext.sqlalchemy import db, utils class Record(db.Model): diff --git a/invenio_records/providers/recid.py b/invenio_records/providers/recid.py index d1836896..fb8c5830 100644 --- a/invenio_records/providers/recid.py +++ b/invenio_records/providers/recid.py @@ -19,7 +19,7 @@ """Define PID provider for recids.""" -from invenio.ext.sqlalchemy import db +from invenio_ext.sqlalchemy import db from invenio_pidstore.provider import PidProvider from sqlalchemy.exc import SQLAlchemyError diff --git a/invenio_records/registry.py b/invenio_records/registry.py index ab59cae4..fb14979f 100644 --- a/invenio_records/registry.py +++ b/invenio_records/registry.py @@ -22,7 +22,7 @@ from flask_registry import PkgResourcesDirDiscoveryRegistry, \ ModuleAutoDiscoveryRegistry, RegistryProxy -from invenio.ext.registry import ModuleAutoDiscoverySubRegistry +from invenio_ext.registry import ModuleAutoDiscoverySubRegistry from invenio.utils.datastructures import LazyDict diff --git a/invenio_records/upgrades/records_2014_08_22_create_record_json.py b/invenio_records/upgrades/records_2014_08_22_create_record_json.py index e60c62ac..dd596fab 100644 --- a/invenio_records/upgrades/records_2014_08_22_create_record_json.py +++ b/invenio_records/upgrades/records_2014_08_22_create_record_json.py @@ -20,7 +20,7 @@ import warnings -from invenio.ext.sqlalchemy import db +from invenio_ext.sqlalchemy import db import sqlalchemy as sa diff --git a/invenio_records/utils.py b/invenio_records/utils.py index e750011a..876910c7 100644 --- a/invenio_records/utils.py +++ b/invenio_records/utils.py @@ -29,7 +29,7 @@ from werkzeug.utils import cached_property, import_string from invenio_base.globals import cfg -from invenio.ext.cache import cache +from invenio_ext.cache import cache def get_unique_record_json(param): diff --git a/invenio_records/views.py b/invenio_records/views.py index 69b5a7d5..c9c68868 100644 --- a/invenio_records/views.py +++ b/invenio_records/views.py @@ -40,7 +40,7 @@ from invenio_base.globals import cfg from invenio_base.i18n import _ from invenio_base.signals import pre_template_render -from invenio.ext.template.context_processor import \ +from invenio_ext.template.context_processor import \ register_template_context_processor from invenio.utils import apache