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
2902c3b9
Commit
2902c3b9
authored
Jan 04, 2017
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It's always bugged me that the help strings were nonsensical
While here, the one-line docstring also bothered me.
parent
d1fa83f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cms/djangoapps/contentstore/management/commands/export.py
+6
-3
No files found.
cms/djangoapps/contentstore/management/commands/export.py
View file @
2902c3b9
...
@@ -14,16 +14,19 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey
...
@@ -14,16 +14,19 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey
class
Command
(
BaseCommand
):
class
Command
(
BaseCommand
):
"""
"""
Export the specified
data directory into the default ModuleStore
Export the specified
course into a directory. Output will need to be tar zxcf'ed.
"""
"""
help
=
'Export the specified
data directory into the default ModuleStore
'
help
=
'Export the specified
course into a directory
'
def
add_arguments
(
self
,
parser
):
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
'course_id'
)
parser
.
add_argument
(
'course_id'
)
parser
.
add_argument
(
'output_path'
)
parser
.
add_argument
(
'output_path'
)
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
"""Execute the command"""
"""
Given a course id(old or new style), and an output_path folder. Export the
corresponding course from mongo and put it directly in the folder.
"""
try
:
try
:
course_key
=
CourseKey
.
from_string
(
options
[
'course_id'
])
course_key
=
CourseKey
.
from_string
(
options
[
'course_id'
])
except
InvalidKeyError
:
except
InvalidKeyError
:
...
...
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