diff options
Diffstat (limited to 'bugzilla/base.py')
-rw-r--r-- | bugzilla/base.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bugzilla/base.py b/bugzilla/base.py index 0fde57e..7ae6086 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -360,6 +360,9 @@ class BugzillaBase(object): def _updateperms(self,user,action,group): '''IMPLEMEMT ME: Update Bugzilla user permissions''' raise NotImplementedError + def _adduser(self,email,name): + '''IMPLEMENT ME: Add a bugzilla user''' + raise NotImplementedError # these return Bug objects def getbug(self,id): @@ -677,6 +680,13 @@ class BugzillaBase(object): groups: list of groups to be added to (i.e. ['fedora_contrib']) ''' self._updateperms(user,action,groups) + def adduser(self,email,name): + '''A method to create a user in Bugzilla. Takes the following: + + email: The email address of the user to create + name: The full name of the user to create + ''' + self._adduser(email,name) class CookieResponse: '''Fake HTTPResponse object that we can fill with headers we got elsewhere. |