summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'bugzilla')
-rw-r--r--bugzilla/base.py8
1 files changed, 8 insertions, 0 deletions
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?