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
e4eea6cc
Commit
e4eea6cc
authored
Jul 29, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some additional comments to clarify the partially bogus course_id.
parent
aa8b0545
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
cms/djangoapps/contentstore/module_info_model.py
+3
-1
cms/djangoapps/contentstore/views/preview.py
+3
-1
No files found.
cms/djangoapps/contentstore/module_info_model.py
View file @
e4eea6cc
...
...
@@ -12,10 +12,12 @@ def get_module_info(store, location, rewrite_static_links=False):
data
=
module
.
data
if
rewrite_static_links
:
# we pass a partially bogus course_id as we don't have the RUN information passed yet
# through the CMS. Also the contentstore is also not RUN-aware at this point in time.
data
=
replace_static_urls
(
module
.
data
,
None
,
course_id
=
module
.
location
.
org
+
'/'
+
module
.
location
.
course
+
'/
REPLACE_WITH_RUN_WHEN_IMPLEMENTED
'
course_id
=
module
.
location
.
org
+
'/'
+
module
.
location
.
course
+
'/
BOGUS_RUN_REPLACE_WHEN_AVAILABLE
'
)
return
{
...
...
cms/djangoapps/contentstore/views/preview.py
View file @
e4eea6cc
...
...
@@ -155,10 +155,12 @@ def load_preview_module(request, preview_id, descriptor):
"xmodule_display.html"
,
)
# we pass a partially bogus course_id as we don't have the RUN information passed yet
# through the CMS. Also the contentstore is also not RUN-aware at this point in time.
module
.
get_html
=
replace_static_urls
(
module
.
get_html
,
getattr
(
module
,
'data_dir'
,
module
.
location
.
course
),
course_id
=
module
.
location
.
org
+
'/'
+
module
.
location
.
course
+
'/
REPLACE_WITH_RUN
'
course_id
=
module
.
location
.
org
+
'/'
+
module
.
location
.
course
+
'/
BOGUS_RUN_REPLACE_WHEN_AVAILABLE
'
)
module
.
get_html
=
save_module
(
...
...
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