diff options
author | Will Woods <wwoods@redhat.com> | 2008-10-09 00:32:35 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2008-10-09 00:32:35 -0400 |
commit | eaf1d6de32be2b06c93c5d70587e39d44b4d7d07 (patch) | |
tree | 83baa41aba0315affb42da048d337b023d6b0dae /bugzilla/base.py | |
parent | a7adb0126fbe0a629014c138784800defcbc6d8e (diff) | |
download | python-bugzilla-eaf1d6de32be2b06c93c5d70587e39d44b4d7d07.tar.gz python-bugzilla-eaf1d6de32be2b06c93c5d70587e39d44b4d7d07.tar.xz python-bugzilla-eaf1d6de32be2b06c93c5d70587e39d44b4d7d07.zip |
Add updateperms(). Patch courtesy of Jon Stanley.
Diffstat (limited to 'bugzilla/base.py')
-rw-r--r-- | bugzilla/base.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bugzilla/base.py b/bugzilla/base.py index 3b07078..0fde57e 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -357,6 +357,9 @@ class BugzillaBase(object): def _query(self,query): '''IMPLEMENT ME: Query bugzilla and return a list of matching bugs.''' raise NotImplementedError + def _updateperms(self,user,action,group): + '''IMPLEMEMT ME: Update Bugzilla user permissions''' + raise NotImplementedError # these return Bug objects def getbug(self,id): @@ -665,6 +668,16 @@ class BugzillaBase(object): bug_id = self._createbug(**data) return Bug(self,bug_id=bug_id) + def updateperms(self,user,action,groups): + '''A method to update the permissions (group membership) of a bugzilla + user. Takes the following: + + user: The e-mail address of the user to be acted upon + action: either add or rem + groups: list of groups to be added to (i.e. ['fedora_contrib']) + ''' + self._updateperms(user,action,groups) + class CookieResponse: '''Fake HTTPResponse object that we can fill with headers we got elsewhere. We can then pass it to CookieJar.extract_cookies() to make it pull out the |