Comment 2 for bug 901203

Revision history for this message
Gary Poster (gary) wrote :

Hi Daniel. I can't duplicate on a local instance with the most recent version of launchpadlib.

>>> t = bug.bug_tasks[0]
>>> t.status = u'Incomplete'
>>> t.lp_save()
>>> bug.bug_tasks[0].status
u'Incomplete'

(I also verified through the browser that the change had been applied.)

When doing this I noticed that the following does not work, which really is nasty:

>>> bug.bug_tasks[0].status = u'Incomplete'
>>> bug.bug_tasks[0].lp_save()
>>> bug.bug_tasks[0].status
u'New'

Yuck. That's because bug.bug_tasks[0] is a different object each time. :-(

Could you let us know what version of launchpadlib you are using, or any other details you can think of that might help? This should do the trick for getting the version:

python -c 'import launchpadlib; print launchpadlib.__version__'

Thanks!