4
import libaccomplishments
7
import json, sys, os, pwd, subprocess
8
from ubuntuone.couch import auth
9
from launchpadlib.launchpad import Launchpad
11
libaccom = libaccomplishments.Accomplishments()
13
f = libaccom.getExtraInformation("ubuntu-community", "launchpad-email")
15
if bool(f[0]["launchpad-email"]) == False:
18
email = f[0]["launchpad-email"]
20
# Get count of bugs reported by user from Launchpad, using email to identify
21
l=Launchpad.login_anonymously('ubuntu-community accomplishments','production')
22
me=l.people.getByEmail(email=email)
27
ubuntu=l.projects['ubuntu']
28
bugs_reported = ubuntu.searchTasks(bug_reporter=me,
29
status=['Confirmed', 'Triaged',
30
'In Progress', 'Fix Committed', 'Fix Released'])
32
if len(bugs_reported) > 0: