#!/usr/bin/python

from lpltk import LaunchpadService

#lp = LaunchpadService(config={'read_only':True})
lp = LaunchpadService()
d = lp.load_project("ubuntu")

print lp.launchpad.me.display_name
for bugtask in d.searchTasks(assignee=lp.launchpad.me):
    print bugtask.title
    print "  Reported by: ",bugtask.owner.display_name
    print "  Importance:  ",bugtask.importance
    print "  Status:      ",bugtask.status
    print "  Assigned on: ",bugtask.date_assigned
    if bugtask.milestone:
        print "  Milestone:   ",bugtask.milestone.name
    print
