rename locator_string to package_id

This commit is contained in:
David Baumgold
2014-01-29 15:55:57 -05:00
parent e10e47d8ab
commit 7cbee5e817

View File

@@ -55,14 +55,14 @@ class Command(BaseCommand):
raise CommandError("No user found identified by {}".format(args[1]))
try:
locator_string = args[2]
package_id = args[2]
except IndexError:
locator_string = None
package_id = None
return location, user, locator_string
return location, user, package_id
def handle(self, *args, **options):
location, user, locator_string = self.parse_args(*args)
location, user, package_id = self.parse_args(*args)
migrator = SplitMigrator(
draft_modulestore=modulestore('default'),
@@ -71,4 +71,4 @@ class Command(BaseCommand):
loc_mapper=loc_mapper(),
)
migrator.migrate_mongo_course(location, user, locator_string)
migrator.migrate_mongo_course(location, user, package_id)