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
63672f6c
Commit
63672f6c
authored
Feb 04, 2014
by
Giulio Gratta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit checklist for edx-west
parent
cbc23310
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
cms/djangoapps/contentstore/views/checklist.py
+14
-0
common/lib/xmodule/xmodule/course_module.py
+0
-0
No files found.
cms/djangoapps/contentstore/views/checklist.py
View file @
63672f6c
import
json
import
copy
from
django.conf
import
settings
from
util.json_request
import
JsonResponse
from
django.http
import
HttpResponseBadRequest
from
django.contrib.auth.decorators
import
login_required
...
...
@@ -114,8 +116,14 @@ def expand_checklist_action_url(course_module, checklist):
urlconf_map
=
{
"ManageUsers"
:
"course_team"
,
"CourseOutline"
:
"course"
,
"StaticPages"
:
"tabs"
,
"SettingsDetails"
:
"settings/details"
,
"SettingsGrading"
:
"settings/grading"
,
"SettingsAdvanced"
:
"settings/advanced"
,
}
lms_urlconf_map
=
{
"Wiki"
:
"course_wiki"
,
"Forum"
:
"discussion/forum"
,
}
for
item
in
expanded_checklist
.
get
(
'items'
):
...
...
@@ -125,5 +133,11 @@ def expand_checklist_action_url(course_module, checklist):
ctx_loc
=
course_module
.
location
location
=
loc_mapper
()
.
translate_location
(
ctx_loc
.
course_id
,
ctx_loc
,
False
,
True
)
item
[
'action_url'
]
=
location
.
url_reverse
(
url_prefix
,
''
)
elif
action_url
in
lms_urlconf_map
:
lms_base
=
settings
.
LMS_BASE
course_id
=
course_module
.
location
.
course_id
url_postfix
=
lms_urlconf_map
[
action_url
]
url
=
'http://'
+
lms_base
+
'/courses/'
+
course_id
+
'/'
+
url_postfix
item
[
'action_url'
]
=
url
return
expanded_checklist
common/lib/xmodule/xmodule/course_module.py
View file @
63672f6c
This diff is collapsed.
Click to expand it.
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