~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/close-account.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:
8
8
__metaclass__ = type
9
9
__all__ = []
10
10
 
 
11
import _pythonpath
 
12
 
11
13
from optparse import OptionParser
12
14
import sys
13
15
 
14
 
import _pythonpath
15
 
 
16
 
from canonical.database.sqlbase import (
 
16
from lp.answers.enums import QuestionStatus
 
17
from lp.registry.interfaces.person import PersonCreationRationale
 
18
from lp.services.database.sqlbase import (
17
19
    connect,
18
20
    sqlvalues,
19
21
    )
22
24
    logger,
23
25
    logger_options,
24
26
    )
25
 
from lp.answers.enums import QuestionStatus
26
 
from lp.registry.interfaces.person import PersonCreationRationale
27
27
 
28
28
 
29
29
def close_account(con, log, username):