From ff420e3eeebbfac762f1718fd0c0b465964b7266 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Mon, 3 Nov 2014 09:48:32 +0100 Subject: [PATCH] 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 --- storyboard/db/migration/cli.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/storyboard/db/migration/cli.py b/storyboard/db/migration/cli.py index cc7ee28f..20e7d34c 100644 --- a/storyboard/db/migration/cli.py +++ b/storyboard/db/migration/cli.py @@ -80,13 +80,6 @@ def do_load_superusers(config, cmd): 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): for name in ['current', 'history', 'branches']: parser = subparsers.add_parser(name) @@ -121,10 +114,6 @@ def add_command_parsers(subparsers): parser.add_argument('file', type=str) 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', title='Command',