~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/schema/fti.py

  • Committer: William Grant
  • Date: 2011-12-30 06:47:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14610.
  • Revision ID: william.grant@canonical.com-20111230064717-n5re5t6we5w8o17z
Replace canonical.database usage everywhere, and format-imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
"""
12
12
__metaclass__ = type
13
13
 
 
14
import _pythonpath
 
15
 
14
16
from distutils.version import LooseVersion
15
17
from optparse import OptionParser
16
18
import os.path
20
22
from textwrap import dedent
21
23
import time
22
24
 
23
 
import _pythonpath
24
25
import psycopg2.extensions
25
 
import replication.helpers
26
26
 
27
27
from canonical.config import config
28
 
from canonical.database.postgresql import ConnectionString
29
 
from canonical.database.sqlbase import (
 
28
from canonical.launchpad.scripts import (
 
29
    db_options,
 
30
    logger,
 
31
    logger_options,
 
32
    )
 
33
from lp.services.database.postgresql import ConnectionString
 
34
from lp.services.database.sqlbase import (
30
35
    connect,
31
36
    ISOLATION_LEVEL_AUTOCOMMIT,
32
37
    ISOLATION_LEVEL_READ_COMMITTED,
33
38
    quote,
34
39
    quote_identifier,
35
40
    )
36
 
from canonical.launchpad.scripts import (
37
 
    db_options,
38
 
    logger,
39
 
    logger_options,
40
 
    )
 
41
import replication.helpers
41
42
 
42
43
# Defines parser and locale to use.
43
44
DEFAULT_CONFIG = 'default'