From 1e3c7fe733250757618ac51f32cbe62f40dbc982 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Tue, 8 Jan 2008 16:15:04 -0500 Subject: Add raw Bugzilla._updateflags() method --- bugzilla.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bugzilla.py b/bugzilla.py index 1d051b3..b19487b 100644 --- a/bugzilla.py +++ b/bugzilla.py @@ -463,7 +463,16 @@ class Bugzilla(object): data = {'type':which,'text':text,'action':action} return self._proxy.bugzilla.updateWhiteboard(id,data,self.user,self.password) - # TODO: flag handling? + # TODO: update this when the XMLRPC interface grows requestee support + def _updateflags(self,id,flags): + '''Updates the flags associated with a bug report. + data should be a hash of {'flagname':'value'} pairs, like so: + {'needinfo':'?','fedora-cvs':'+'} + You may also add a "nomail":1 item, which will suppress email if set. + + NOTE: the Red Hat XMLRPC interface does not yet support setting the + requestee (as in: needinfo from smartguy@answers.com). Alas.''' + return self._proxy.bugzilla.updateFlags(id,flags,self.user,self.password) #---- Methods for working with attachments -- cgit