summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bugzilla/bugzilla3.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bugzilla/bugzilla3.py b/bugzilla/bugzilla3.py
index 8186111..562c975 100644
--- a/bugzilla/bugzilla3.py
+++ b/bugzilla/bugzilla3.py
@@ -259,7 +259,14 @@ class RHBugzilla32(Bugzilla32):
if action == 'overwrite':
update[which] = text
else:
- raise NotImplementedError, "append/prepend not supported yet"
+ r = self._getbug(id)
+ if which not in r:
+ raise ValueError, "No such whiteboard %s in bug %i" % (which,id)
+ wb = r[which]
+ if action == 'prepend':
+ update[which] = text+' '+wb
+ elif action == 'append':
+ update[which] = wb+' '+text
self._update_bug(id,update)
# TODO: update this when the XMLRPC interface grows requestee support