summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-08-18 13:40:53 -0400
committerWill Woods <wwoods@redhat.com>2008-08-18 13:40:53 -0400
commit7328a5650d39e6d77c0a6b3ad7cb059de4242316 (patch)
tree0f5acc49878820af9311f4bb9223cf33cbd91817 /bugzilla
parent772bb9f201521535df57fa8b37d2da2af1c3a5fb (diff)
downloadpython-bugzilla-7328a5650d39e6d77c0a6b3ad7cb059de4242316.tar.gz
python-bugzilla-7328a5650d39e6d77c0a6b3ad7cb059de4242316.tar.xz
python-bugzilla-7328a5650d39e6d77c0a6b3ad7cb059de4242316.zip
Add addcc/deletecc to Bug object
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?