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
6a43e7c8
Commit
6a43e7c8
authored
Jun 18, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #119 from MITx/victor/render-path-cleanup
put lambda function back in, as requested during code review
parents
fc2b8af9
657ca8e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lms/djangoapps/courseware/module_render.py
+3
-4
No files found.
lms/djangoapps/courseware/module_render.py
View file @
6a43e7c8
...
@@ -164,11 +164,10 @@ def get_module(user, request, module_xml, student_module_cache, position=None):
...
@@ -164,11 +164,10 @@ def get_module(user, request, module_xml, student_module_cache, position=None):
# Setup system context for module instance
# Setup system context for module instance
ajax_url
=
settings
.
MITX_ROOT_URL
+
'/modx/'
+
module_type
+
'/'
+
module_id
+
'/'
ajax_url
=
settings
.
MITX_ROOT_URL
+
'/modx/'
+
module_type
+
'/'
+
module_id
+
'/'
def
render_x_module_wrapper
(
module_xml
):
return
render_x_module
(
user
,
request
,
module_xml
,
student_module_cache
,
position
)
system
=
I4xSystem
(
track_function
=
make_track_function
(
request
),
system
=
I4xSystem
(
track_function
=
make_track_function
(
request
),
render_function
=
render_x_module_wrapper
,
render_function
=
lambda
xml
:
render_x_module
(
user
,
request
,
xml
,
student_module_cache
,
position
),
render_template
=
render_to_string
,
render_template
=
render_to_string
,
ajax_url
=
ajax_url
,
ajax_url
=
ajax_url
,
request
=
request
,
request
=
request
,
...
...
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