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
61223571
Commit
61223571
authored
Nov 06, 2013
by
Nick Parlante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand the edit_course_tabs help text
parent
5aa19c08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
cms/djangoapps/contentstore/management/commands/edit_course_tabs.py
+11
-7
No files found.
cms/djangoapps/contentstore/management/commands/edit_course_tabs.py
View file @
61223571
...
...
@@ -20,6 +20,7 @@ from contentstore.views import tabs
def
print_course
(
course
):
"Prints out the course id and a numbered list of tabs."
print
course
.
id
print
'num type name'
for
index
,
item
in
enumerate
(
course
.
tabs
):
print
index
+
1
,
'"'
+
item
.
get
(
'type'
)
+
'"'
,
'"'
+
item
.
get
(
'name'
,
''
)
+
'"'
...
...
@@ -31,13 +32,16 @@ def print_course(course):
class
Command
(
BaseCommand
):
help
=
"""See and edit a course's tabs list.
Only supports insertion and deletion. Move and
rename etc. can be done with a delete
followed by an insert.
The tabs are numbered starting with 1.
Tabs 1 and 2 cannot be changed, and tabs of type
static_tab cannot be edited (use Studio for those).
help
=
"""See and edit a course's tabs list. Only supports insertion
and deletion. Move and rename etc. can be done with a delete
followed by an insert. The tabs are numbered starting with 1.
Tabs 1 and 2 cannot be changed, and tabs of type static_tab cannot
be edited (use Studio for those).
As a first step, run the command with a courseid like this:
--course Stanford/CS99/2013_spring
This will print the existing tabs types and names. Then run the
command again, adding --insert or --delete to edit the list.
"""
# Making these option objects separately, so can refer to their .help below
course_option
=
make_option
(
'--course'
,
...
...
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