~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/schema/upgrade.py

  • Committer: Curtis Hovey
  • Date: 2011-12-28 17:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 14605.
  • Revision ID: curtis.hovey@canonical.com-20111228170306-n9fz94h85ckaoaf3
Separate test-authoring classes from test-running classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
__metaclass__ = type
11
11
 
12
 
import _pythonpath
 
12
# pylint: disable-msg=W0403
 
13
import _pythonpath  # Sort PYTHONPATH
13
14
 
14
15
from cStringIO import StringIO
15
16
import glob
 
17
import os.path
16
18
from optparse import OptionParser
17
 
import os.path
18
19
import re
19
20
from tempfile import NamedTemporaryFile
20
21
from textwrap import dedent
22
23
from bzrlib.branch import Branch
23
24
from bzrlib.errors import NotBranchError
24
25
 
25
 
from lp.services.database.postgresql import fqn
26
 
from lp.services.database.sqlbase import (
 
26
from lp.services.scripts import db_options, logger_options, logger
 
27
from canonical.database.sqlbase import (
27
28
    connect,
28
29
    ISOLATION_LEVEL_AUTOCOMMIT,
29
30
    sqlvalues,
30
31
    )
31
 
from lp.services.scripts import (
32
 
    db_options,
33
 
    logger,
34
 
    logger_options,
35
 
    )
 
32
from canonical.database.postgresql import fqn
36
33
import replication.helpers
37
34
 
38
35