From a37d09aefb1e8f69b247deb2a368fd472c6869f4 Mon Sep 17 00:00:00 2001 From: Nimisha Asthagiri Date: Thu, 4 Jan 2018 12:28:50 -0500 Subject: [PATCH] Move PluginManager out of api folder --- common/lib/xmodule/xmodule/tabs.py | 2 +- .../djangoapps/content/block_structure/transformer_registry.py | 2 +- openedx/core/lib/course_tabs.py | 2 +- openedx/core/lib/{api => }/plugins.py | 0 openedx/core/lib/tests/test_course_tab_api.py | 2 +- openedx/features/course_experience/course_tools.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename openedx/core/lib/{api => }/plugins.py (100%) diff --git a/common/lib/xmodule/xmodule/tabs.py b/common/lib/xmodule/xmodule/tabs.py index ab16903470..e634bae879 100644 --- a/common/lib/xmodule/xmodule/tabs.py +++ b/common/lib/xmodule/xmodule/tabs.py @@ -8,7 +8,7 @@ from django.core.files.storage import get_storage_class from six import text_type from xblock.fields import List -from openedx.core.lib.api.plugins import PluginError +from openedx.core.lib.plugins import PluginError log = logging.getLogger("edx.courseware") diff --git a/openedx/core/djangoapps/content/block_structure/transformer_registry.py b/openedx/core/djangoapps/content/block_structure/transformer_registry.py index 9c7b141f2c..2a57d64c9b 100644 --- a/openedx/core/djangoapps/content/block_structure/transformer_registry.py +++ b/openedx/core/djangoapps/content/block_structure/transformer_registry.py @@ -5,7 +5,7 @@ PluginManager. from base64 import b64encode from hashlib import sha1 -from openedx.core.lib.api.plugins import PluginManager +from openedx.core.lib.plugins import PluginManager from openedx.core.lib.cache_utils import memoized diff --git a/openedx/core/lib/course_tabs.py b/openedx/core/lib/course_tabs.py index 4ce547c8fc..56d4ef1f2e 100644 --- a/openedx/core/lib/course_tabs.py +++ b/openedx/core/lib/course_tabs.py @@ -1,7 +1,7 @@ """ Tabs for courseware. """ -from openedx.core.lib.api.plugins import PluginManager +from openedx.core.lib.plugins import PluginManager # Stevedore extension point namespaces COURSE_TAB_NAMESPACE = 'openedx.course_tab' diff --git a/openedx/core/lib/api/plugins.py b/openedx/core/lib/plugins.py similarity index 100% rename from openedx/core/lib/api/plugins.py rename to openedx/core/lib/plugins.py diff --git a/openedx/core/lib/tests/test_course_tab_api.py b/openedx/core/lib/tests/test_course_tab_api.py index 44537e295b..18607aec71 100644 --- a/openedx/core/lib/tests/test_course_tab_api.py +++ b/openedx/core/lib/tests/test_course_tab_api.py @@ -5,7 +5,7 @@ Tests for the plugin API from django.test import TestCase from nose.plugins.attrib import attr -from openedx.core.lib.api.plugins import PluginError +from openedx.core.lib.plugins import PluginError from openedx.core.lib.course_tabs import CourseTabPluginManager diff --git a/openedx/features/course_experience/course_tools.py b/openedx/features/course_experience/course_tools.py index 3be140ecc3..fe1f45f261 100644 --- a/openedx/features/course_experience/course_tools.py +++ b/openedx/features/course_experience/course_tools.py @@ -1,7 +1,7 @@ """ Support for course tool plugins. """ -from openedx.core.lib.api.plugins import PluginManager +from openedx.core.lib.plugins import PluginManager # Stevedore extension point namespace COURSE_TOOLS_NAMESPACE = 'openedx.course_tool'