Commit 341c6891 by Ned Batchelder

Merge pull request #1353 from edx/ned/rename-requests

Rename contentstore/views/requests to helpers
parents e825cfb1 25a02747
...@@ -3,7 +3,7 @@ import mock ...@@ -3,7 +3,7 @@ import mock
from django.test import TestCase from django.test import TestCase
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from contentstore.views.requests import event as cms_user_track from contentstore.views.helpers import event as cms_user_track
class CMSLogTest(TestCase): class CMSLogTest(TestCase):
......
...@@ -9,13 +9,13 @@ from .checklist import * ...@@ -9,13 +9,13 @@ from .checklist import *
from .component import * from .component import *
from .course import * from .course import *
from .error import * from .error import *
from .helpers import *
from .item import * from .item import *
from .import_export import * from .import_export import *
from .preview import * from .preview import *
from .public import * from .public import *
from .user import * from .user import *
from .tabs import * from .tabs import *
from .requests import *
try: try:
from .dev import * from .dev import *
except ImportError: except ImportError:
......
...@@ -26,7 +26,7 @@ from contentstore.utils import (get_modulestore, get_lms_link_for_item, ...@@ -26,7 +26,7 @@ from contentstore.utils import (get_modulestore, get_lms_link_for_item,
from models.settings.course_grading import CourseGradingModel from models.settings.course_grading import CourseGradingModel
from .requests import _xmodule_recurse from .helpers import _xmodule_recurse
from .access import has_access from .access import has_access
from xmodule.x_module import XModuleDescriptor from xmodule.x_module import XModuleDescriptor
from xblock.plugin import PluginMissingError from xblock.plugin import PluginMissingError
......
...@@ -12,7 +12,7 @@ from xmodule.modulestore.inheritance import own_metadata ...@@ -12,7 +12,7 @@ from xmodule.modulestore.inheritance import own_metadata
from util.json_request import expect_json, JsonResponse from util.json_request import expect_json, JsonResponse
from ..utils import get_modulestore from ..utils import get_modulestore
from .access import has_access from .access import has_access
from .requests import _xmodule_recurse from .helpers import _xmodule_recurse
from xmodule.x_module import XModuleDescriptor from xmodule.x_module import XModuleDescriptor
__all__ = ['save_item', 'create_item', 'delete_item'] __all__ = ['save_item', 'create_item', 'delete_item']
......
...@@ -22,7 +22,7 @@ from util.sandboxing import can_execute_unsafe_code ...@@ -22,7 +22,7 @@ from util.sandboxing import can_execute_unsafe_code
import static_replace import static_replace
from .session_kv_store import SessionKeyValueStore from .session_kv_store import SessionKeyValueStore
from .requests import render_from_lms from .helpers import render_from_lms
from .access import has_access from .access import has_access
from ..utils import get_course_for_item from ..utils import get_course_for_item
......
...@@ -129,7 +129,7 @@ class TestPublish(unittest.TestCase): ...@@ -129,7 +129,7 @@ class TestPublish(unittest.TestCase):
""" """
Applies action depth-first down tree and to item last. Applies action depth-first down tree and to item last.
A copy of cms.djangoapps.contentstore.views.requests._xmodule_recurse to reproduce its use and behavior A copy of cms.djangoapps.contentstore.views.helpers._xmodule_recurse to reproduce its use and behavior
outside of django. outside of django.
""" """
for child in item.get_children(): for child in item.get_children():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment