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
7cbee5e8
Commit
7cbee5e8
authored
Jan 29, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename locator_string to package_id
parent
e10e47d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cms/djangoapps/contentstore/management/commands/migrate_to_split.py
+5
-5
No files found.
cms/djangoapps/contentstore/management/commands/migrate_to_split.py
View file @
7cbee5e8
...
@@ -55,14 +55,14 @@ class Command(BaseCommand):
...
@@ -55,14 +55,14 @@ class Command(BaseCommand):
raise
CommandError
(
"No user found identified by {}"
.
format
(
args
[
1
]))
raise
CommandError
(
"No user found identified by {}"
.
format
(
args
[
1
]))
try
:
try
:
locator_string
=
args
[
2
]
package_id
=
args
[
2
]
except
IndexError
:
except
IndexError
:
locator_string
=
None
package_id
=
None
return
location
,
user
,
locator_string
return
location
,
user
,
package_id
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
location
,
user
,
locator_string
=
self
.
parse_args
(
*
args
)
location
,
user
,
package_id
=
self
.
parse_args
(
*
args
)
migrator
=
SplitMigrator
(
migrator
=
SplitMigrator
(
draft_modulestore
=
modulestore
(
'default'
),
draft_modulestore
=
modulestore
(
'default'
),
...
@@ -71,4 +71,4 @@ class Command(BaseCommand):
...
@@ -71,4 +71,4 @@ class Command(BaseCommand):
loc_mapper
=
loc_mapper
(),
loc_mapper
=
loc_mapper
(),
)
)
migrator
.
migrate_mongo_course
(
location
,
user
,
locator_string
)
migrator
.
migrate_mongo_course
(
location
,
user
,
package_id
)
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