~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/replication/new-slave.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-31 00:16:50 UTC
  • mfrom: (14606.3.7 apocaremains)
  • Revision ID: launchpad@pqm.canonical.com-20111231001650-pjeyhfjhm6mg3yp8
[r=wgrant][no-qa] Merge canonical.database into lp.services.database.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
__metaclass__ = type
9
9
__all__ = []
10
10
 
 
11
import _pythonpath
 
12
 
11
13
from optparse import OptionParser
12
14
import subprocess
13
15
import sys
14
16
from textwrap import dedent
15
17
import time
16
18
 
17
 
import _pythonpath
18
19
import psycopg2
19
 
import replication.helpers
20
 
from replication.helpers import LPMAIN_SET_ID
21
20
 
22
 
from canonical.database.postgresql import ConnectionString
23
 
from canonical.database.sqlbase import (
 
21
from lp.services.database.postgresql import ConnectionString
 
22
from lp.services.database.sqlbase import (
24
23
    connect_string,
25
24
    ISOLATION_LEVEL_AUTOCOMMIT,
26
25
    )
29
28
    logger,
30
29
    logger_options,
31
30
    )
 
31
import replication.helpers
 
32
from replication.helpers import LPMAIN_SET_ID
32
33
 
33
34
 
34
35
def main():