Fix module name for `gmg alembic` command
authorBoris Bobrov <breton@cynicmansion.ru>
Tue, 8 Mar 2016 14:12:49 +0000 (17:12 +0300)
committerBoris Bobrov <breton@cynicmansion.ru>
Tue, 8 Mar 2016 15:23:45 +0000 (18:23 +0300)
gmg_commands.alembic attempted to import from `alembic`. On python2.7
it resulted in import from itself.

Rename alembic.py to alembic_commands.py and fix references to
gmg_commands.alembic.

mediagoblin/gmg_commands/__init__.py
mediagoblin/gmg_commands/alembic_commands.py [moved from mediagoblin/gmg_commands/alembic.py with 100% similarity]

index b2c8cd6bb051147d23cc94a033ff0c987e7148d0..98b097a625e5a612266a2e4e3fae7f81121b64d1 100644 (file)
@@ -77,8 +77,8 @@ SUBCOMMAND_MAP = {
         'func': 'mediagoblin.gmg_commands.batchaddmedia:batchaddmedia',
         'help': 'Add many media entries at once'},
     'alembic': {
-        'setup': 'mediagoblin.gmg_commands.alembic:parser_setup',
-        'func': 'mediagoblin.gmg_commands.alembic:raw_alembic_cli',
+        'setup': 'mediagoblin.gmg_commands.alembic_commands:parser_setup',
+        'func': 'mediagoblin.gmg_commands.alembic_commands:raw_alembic_cli',
         'help': (
             'Run raw alembic commands with our local database.  '
             '(Unless you know what you\'re doing, use dbupdate instead!)')},