~mabac/launchpad-work-items-tracker/change-roadmap-urls

« back to all changes in this revision

Viewing changes to json-report

  • Committer: James Westby
  • Date: 2011-09-12 19:06:34 UTC
  • Revision ID: james.westby@linaro.org-20110912190634-k9cbsv31aiczwlmm
Back out the Storm changes as they are causing problems on production.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    (opts, args) = optparser.parse_args()
32
32
    if not opts.database:
33
33
        optparser.error('No database given')
34
 
    store = report_tools.get_store(opts.database)
 
34
    db = report_tools.get_db(opts.database)
35
35
 
36
36
    if opts.user and  opts.team:
37
37
        optparser.error('team and user options are mutually exclusive')
51
51
 
52
52
    # original WI dump
53
53
    json["workitems_by_assignee"] = report_tools.assignee_completion(
54
 
        store, opts.team, opts.milestone)
 
54
        db, opts.team, opts.milestone)
55
55
 
56
56
    # blueprint data
57
57
    json["specs"] = report_tools.spec_information(
58
 
        store, config, opts.team, opts.milestone)
 
58
        db, config, opts.team, opts.milestone)
59
59
 
60
60
    # team data
61
 
    json["teams"] = report_tools.team_information(store, opts.team )
 
61
    json["teams"] = report_tools.team_information( db, opts.team )
62
62
 
63
63
    print simplejson.dumps(json, indent=2, sort_keys=True)