Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7c704f39
Commit
7c704f39
authored
May 06, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move xmodule_modifiers.py to openedx/core/lib/xblock_utils.py
parent
57143d60
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
cms/djangoapps/contentstore/course_info_model.py
+1
-1
cms/djangoapps/contentstore/views/item.py
+1
-1
cms/djangoapps/contentstore/views/preview.py
+1
-1
lms/djangoapps/courseware/module_render.py
+1
-1
lms/djangoapps/courseware/tests/test_module_render.py
+2
-2
lms/djangoapps/instructor/views/instructor_dashboard.py
+1
-1
lms/djangoapps/mobile_api/course_info/views.py
+1
-1
openedx/core/lib/xblock_utils.py
+0
-0
No files found.
cms/djangoapps/contentstore/course_info_model.py
View file @
7c704f39
...
...
@@ -22,7 +22,7 @@ from xmodule.modulestore.exceptions import ItemNotFoundError
from
xmodule.modulestore.django
import
modulestore
from
xmodule.html_module
import
CourseInfoModule
from
xmodule_modifier
s
import
get_course_update_items
from
openedx.core.lib.xblock_util
s
import
get_course_update_items
from
cms.djangoapps.contentstore.push_notification
import
enqueue_push_course_update
# # This should be in a class which inherits from XmlDescriptor
...
...
cms/djangoapps/contentstore/views/item.py
View file @
7c704f39
...
...
@@ -11,7 +11,7 @@ import json
from
collections
import
OrderedDict
from
functools
import
partial
from
static_replace
import
replace_static_urls
from
xmodule_modifier
s
import
wrap_xblock
,
request_token
from
openedx.core.lib.xblock_util
s
import
wrap_xblock
,
request_token
import
dogstats_wrapper
as
dog_stats_api
from
django.conf
import
settings
...
...
cms/djangoapps/contentstore/views/preview.py
View file @
7c704f39
...
...
@@ -9,7 +9,7 @@ from django.http import Http404, HttpResponseBadRequest
from
django.contrib.auth.decorators
import
login_required
from
edxmako.shortcuts
import
render_to_string
from
xmodule_modifier
s
import
replace_static_urls
,
wrap_xblock
,
wrap_fragment
,
request_token
from
openedx.core.lib.xblock_util
s
import
replace_static_urls
,
wrap_xblock
,
wrap_fragment
,
request_token
from
xmodule.x_module
import
PREVIEW_VIEWS
,
STUDENT_VIEW
,
AUTHOR_VIEW
from
xmodule.contentstore.django
import
contentstore
from
xmodule.error_module
import
ErrorDescriptor
...
...
lms/djangoapps/courseware/module_render.py
View file @
7c704f39
...
...
@@ -57,7 +57,7 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey
from
xmodule.contentstore.django
import
contentstore
from
xmodule.modulestore.django
import
modulestore
,
ModuleI18nService
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
xmodule_modifier
s
import
(
from
openedx.core.lib.xblock_util
s
import
(
replace_course_urls
,
replace_jump_to_id_urls
,
replace_static_urls
,
...
...
lms/djangoapps/courseware/tests/test_module_render.py
View file @
7c704f39
...
...
@@ -1000,7 +1000,7 @@ class TestStaffDebugInfo(ModuleStoreTestCase):
self
.
user
,
self
.
descriptor
)
with
patch
(
'
xmodule_modifier
s.grade_histogram'
)
as
mock_grade_histogram
:
with
patch
(
'
openedx.core.lib.xblock_util
s.grade_histogram'
)
as
mock_grade_histogram
:
mock_grade_histogram
.
return_value
=
[]
module
=
render
.
get_module
(
self
.
user
,
...
...
@@ -1022,7 +1022,7 @@ class TestStaffDebugInfo(ModuleStoreTestCase):
max_grade
=
1
,
state
=
"{}"
,
)
with
patch
(
'
xmodule_modifier
s.grade_histogram'
)
as
mock_grade_histogram
:
with
patch
(
'
openedx.core.lib.xblock_util
s.grade_histogram'
)
as
mock_grade_histogram
:
mock_grade_histogram
.
return_value
=
[]
module
=
render
.
get_module
(
self
.
user
,
...
...
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
7c704f39
...
...
@@ -23,7 +23,7 @@ from util.json_request import JsonResponse
from
mock
import
patch
from
lms.djangoapps.lms_xblock.runtime
import
quote_slashes
from
xmodule_modifier
s
import
wrap_xblock
from
openedx.core.lib.xblock_util
s
import
wrap_xblock
from
xmodule.html_module
import
HtmlDescriptor
from
xmodule.modulestore.django
import
modulestore
from
xblock.field_data
import
DictFieldData
...
...
lms/djangoapps/mobile_api/course_info/views.py
View file @
7c704f39
...
...
@@ -7,7 +7,7 @@ from rest_framework.response import Response
from
courseware.courses
import
get_course_about_section
,
get_course_info_section_module
from
static_replace
import
make_static_urls_absolute
,
replace_static_urls
from
xmodule_modifier
s
import
get_course_update_items
from
openedx.core.lib.xblock_util
s
import
get_course_update_items
from
..utils
import
mobile_view
,
mobile_course_access
...
...
common/djangoapps/xmodule_modifier
s.py
→
openedx/core/lib/xblock_util
s.py
View file @
7c704f39
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment