def __init__(self, msg):
self.product = msg["task"]
self.status = msg["status"]
+ self.assignee = msg["assignee"]
+ self.reporter = msg["reporter"]
class LaunchpadBug:
def __init__(self, text):
bug = rfc822.Message(text)
dupestr = bug.get("duplicate-of", None)
- if dupestr == "":
+ if dupestr is None or dupestr == "":
self.duplicate_of = None
else:
self.duplicate_of = int(dupestr)
self.id = int(bug["bug"])
self.tasks = {}
+ self.title = bug["title"]
+ self.repoter = bug["reporter"]
+
+ import pdb
+ pdb.set_trace()
# Find the task related to the product we're dealing
# with at the moment