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
4fc8ed8e
Commit
4fc8ed8e
authored
Oct 20, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix command line migrator
parent
b9c37120
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
cms/djangoapps/contentstore/management/commands/migrate_to_split.py
+1
-1
common/lib/xmodule/xmodule/modulestore/split_migrator.py
+3
-0
No files found.
cms/djangoapps/contentstore/management/commands/migrate_to_split.py
View file @
4fc8ed8e
...
...
@@ -63,7 +63,7 @@ class Command(BaseCommand):
except
IndexError
:
pass
return
course_key
,
user
,
org
,
course
,
run
return
course_key
,
user
.
id
,
org
,
course
,
run
def
handle
(
self
,
*
args
,
**
options
):
course_key
,
user
,
org
,
course
,
run
=
self
.
parse_args
(
*
args
)
...
...
common/lib/xmodule/xmodule/modulestore/split_migrator.py
View file @
4fc8ed8e
...
...
@@ -11,6 +11,7 @@ import logging
from
xblock.fields
import
Reference
,
ReferenceList
,
ReferenceValueDict
from
xmodule.modulestore
import
ModuleStoreEnum
from
opaque_keys.edx.locator
import
CourseLocator
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
log
=
logging
.
getLogger
(
__name__
)
...
...
@@ -46,6 +47,8 @@ class SplitMigrator(object):
# create the course: set fields to explicitly_set for each scope, id_root = new_course_locator, master_branch = 'production'
original_course
=
self
.
source_modulestore
.
get_course
(
source_course_key
,
**
kwargs
)
if
original_course
is
None
:
raise
ItemNotFoundError
(
unicode
(
source_course_key
))
if
new_org
is
None
:
new_org
=
source_course_key
.
org
...
...
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