Removed launchpad loader from db migration script.
The migration script has its own executable, so I'm cleaning up the old launchpad loader hook (unused). Change-Id: I02cc5da683d27b5cc422702fbc7134b89521ef7f
This commit is contained in:
parent
4e1bcdce18
commit
ff420e3eee
@ -80,13 +80,6 @@ def do_load_superusers(config, cmd):
|
|||||||
superusers_loader.do_load_models(CONF.command.file)
|
superusers_loader.do_load_models(CONF.command.file)
|
||||||
|
|
||||||
|
|
||||||
def do_load_launchpad(config, cmd):
|
|
||||||
# Doing import here so that you only need launchpadlib
|
|
||||||
# if you're actually importing from launchpad
|
|
||||||
from storyboard.db import launchpad_loader
|
|
||||||
launchpad_loader.do_load_models(CONF.command.project)
|
|
||||||
|
|
||||||
|
|
||||||
def add_command_parsers(subparsers):
|
def add_command_parsers(subparsers):
|
||||||
for name in ['current', 'history', 'branches']:
|
for name in ['current', 'history', 'branches']:
|
||||||
parser = subparsers.add_parser(name)
|
parser = subparsers.add_parser(name)
|
||||||
@ -121,10 +114,6 @@ def add_command_parsers(subparsers):
|
|||||||
parser.add_argument('file', type=str)
|
parser.add_argument('file', type=str)
|
||||||
parser.set_defaults(func=do_load_superusers)
|
parser.set_defaults(func=do_load_superusers)
|
||||||
|
|
||||||
parser = subparsers.add_parser('load_launchpad')
|
|
||||||
parser.add_argument('project', type=str)
|
|
||||||
parser.set_defaults(func=do_load_launchpad)
|
|
||||||
|
|
||||||
|
|
||||||
command_opt = cfg.SubCommandOpt('command',
|
command_opt = cfg.SubCommandOpt('command',
|
||||||
title='Command',
|
title='Command',
|
||||||
|
Loading…
Reference in New Issue
Block a user