diff options
author | Will Woods <wwoods@redhat.com> | 2008-08-18 13:40:25 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2008-08-18 13:40:25 -0400 |
commit | 772bb9f201521535df57fa8b37d2da2af1c3a5fb (patch) | |
tree | f34237ded85f6e92723ab405d55ceffc10477db8 /bugzilla/rhbugzilla.py | |
parent | ff1ce61e55ae0b2f5e8fb30d39c77f8bdddfe4fa (diff) | |
download | python-bugzilla-772bb9f201521535df57fa8b37d2da2af1c3a5fb.tar.gz python-bugzilla-772bb9f201521535df57fa8b37d2da2af1c3a5fb.tar.xz python-bugzilla-772bb9f201521535df57fa8b37d2da2af1c3a5fb.zip |
Fix up _updatecc - change the action param to match other methods and implement it for bz32.
Diffstat (limited to 'bugzilla/rhbugzilla.py')
-rw-r--r-- | bugzilla/rhbugzilla.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bugzilla/rhbugzilla.py b/bugzilla/rhbugzilla.py index 984787b..a0a5656 100644 --- a/bugzilla/rhbugzilla.py +++ b/bugzilla/rhbugzilla.py @@ -211,10 +211,15 @@ class RHBugzilla(bugzilla.base.BugzillaBase): def _updatecc(self,id,cclist,action,comment='',nomail=False): '''Updates the CC list using the action and account list specified. cclist must be a list (not a tuple!) of addresses. - action may be 'add', 'remove', or 'makeexact'. + action may be 'add', 'delete', or 'overwrite'. comment specifies an optional comment to add to the bug. if mail is True, email will be generated for this change. ''' + # Massage the 'action' param into what the old updateCC call expects + if action == 'delete': + action = 'remove' + elif action == 'overwrite': + action = 'makeexact' data = {'id':id, 'action':action, 'cc':','.join(cclist), 'comment':comment, 'nomail':nomail} return self._proxy.bugzilla.updateCC(data) |