From 7328a5650d39e6d77c0a6b3ad7cb059de4242316 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 18 Aug 2008 13:40:53 -0400 Subject: Add addcc/deletecc to Bug object --- bugzilla/base.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bugzilla') diff --git a/bugzilla/base.py b/bugzilla/base.py index db9b2e9..a189e8f 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -976,5 +976,13 @@ class Bug(object): tags = self.gettags(which) tags.remove(tag) self.setwhiteboard(' '.join(tags),which) + def addcc(self,cclist,comment=''): + '''Adds the given email addresses to the CC list for this bug. + cclist: list of email addresses (strings) + comment: optional comment to add to the bug''' + self.bugzilla.updatecc(self.bug_id,cclist,'add',comment) + def deletecc(self,cclist,comment=''): + '''Removes the given email addresses from the CC list for this bug.''' + self.bugzilla.updatecc(self.bug_id,cclist,'delete',comment) # TODO: add a sync() method that writes the changed data in the Bug object # back to Bugzilla? -- cgit