~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/schema/security.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:
5
5
 
6
6
__metaclass__ = type
7
7
 
8
 
# pylint: disable-msg=W0403
9
8
import _pythonpath
10
9
 
11
10
from collections import defaultdict
17
16
 
18
17
import psycopg2
19
18
 
20
 
from canonical.database.sqlbase import connect
21
 
from lp.services.scripts import logger_options, logger, db_options
22
19
from fti import quote_identifier
 
20
from lp.services.database.sqlbase import connect
 
21
from lp.services.scripts import (
 
22
    db_options,
 
23
    logger,
 
24
    logger_options,
 
25
    )
23
26
import replication.helpers
24
27
 
25
 
 
26
28
# The 'read' group does not get given select permission on the following
27
29
# tables. This is to stop the ro user being given access to secrurity
28
30
# sensitive information that interactive sessions don't need.