~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/report-database-stats.py

  • Committer: Curtis Hovey
  • Date: 2011-12-24 17:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224174930-xk1d5cvhyxq46ctf
Moved webapp to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
__metaclass__ = type
8
8
 
9
 
import _pythonpath
10
 
 
11
9
from datetime import datetime
12
10
from operator import attrgetter
13
11
from textwrap import (
15
13
    fill,
16
14
    )
17
15
 
18
 
from lp.scripts.helpers import LPOptionParser
19
 
from lp.services.database.namedrow import named_fetchall
20
 
from lp.services.database.sqlbase import (
 
16
import _pythonpath
 
17
 
 
18
from canonical.database.sqlbase import (
21
19
    connect,
22
20
    sqlvalues,
23
21
    )
24
22
from lp.services.scripts import db_options
 
23
from lp.scripts.helpers import LPOptionParser
 
24
from lp.services.database.namedrow import named_fetchall
25
25
 
26
26
 
27
27
class Table: