Comment 11 for bug 302836

Revision history for this message
Markus Korn (thekorn) wrote :

The attached branch has the easiest fix for launchpadlib I could find. I don't feel 100% positive about it, but it works. I personally like the workflow of doing the changes locally and submitting them at once by calling .lp_save() more, but I was not able to implement this in a sane way.

Example:
In [10]: b = launchpad.bugs[88102]

In [11]: t = b.bug_tasks[0]

In [12]: t.status
Out[12]: u'New'

In [13]: t.importance
Out[13]: u'Medium'

In [14]: t.assignee

In [15]: t.status = "Confirmed"

In [16]: t.status
Out[16]: u'Confirmed'

In [17]: t.importance = "High"

In [18]: t.importance
Out[18]: u'High'

In [19]: t.assignee = launchpad.me

In [20]: t.assignee
Out[20]: <person at https://api.staging.launchpad.net/beta/~thekorn>

Any comments, critique, ideas?