summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-01-08 16:15:04 -0500
committerWill Woods <wwoods@redhat.com>2008-01-08 16:15:04 -0500
commit1e3c7fe733250757618ac51f32cbe62f40dbc982 (patch)
tree376e3ed08141d5fe3afe582f237b4042b7850411
parent968168a1901bbad55a2fce8cda04b89f0b90ccbd (diff)
downloadpython-bugzilla-1e3c7fe733250757618ac51f32cbe62f40dbc982.tar.gz
python-bugzilla-1e3c7fe733250757618ac51f32cbe62f40dbc982.tar.xz
python-bugzilla-1e3c7fe733250757618ac51f32cbe62f40dbc982.zip
Add raw Bugzilla._updateflags() method
-rw-r--r--bugzilla.py11
1 files changed, 10 insertions, 1 deletions
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