From ff1ce61e55ae0b2f5e8fb30d39c77f8bdddfe4fa Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 15 Aug 2008 17:00:56 -0400 Subject: finish _updatewhiteboard --- bugzilla/bugzilla3.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit