This was an incredibly annoying API change. The new syntax is:
updates = bugzilla.build_update(\
status = origbug.status,
flags = [{"name": "some-flag", "status": "+"},{"name": "some-other-flag", "status": "+"},{"name": "red-flag", "status": "+"},{"name": "blue-flag", "status": "?"}])
bugzilla.update_bugs(newbug.bug_id,updates)
-- bk
On 03/10/2017 04:17 PM, Dennis Kliban wrote:
The following code used to work with python-bugzilla 1.2, but has
stopped working with 2.0.0.
BZ.update_flags(bug.id <http://bug.id>, [{ "name": "needinfo",
"status": "?",
"requestee": needinfo_email,
"new": True}])
The new Bug.updateflags() method seems to only handle flags with a
simple status. How do I set a needinfo flag using 2.0.0?
Thanks,
Dennis
_______________________________________________
python-bugzilla mailing list -- python-bugzilla@lists.fedorahosted.org
To unsubscribe send an email to python-bugzilla-leave@lists.fedorahosted.org