diff options
author | Will Woods <wwoods@redhat.com> | 2008-06-06 09:38:52 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2008-06-06 09:38:52 -0400 |
commit | dbd928a4b7ec66e10cf4b3c0e310ca211d76bbc2 (patch) | |
tree | a7c5c84872a7eba8346f066838d4b9dc743b85a8 /bugzilla/rhbugzilla.py | |
parent | 8dcf06ea263105485096b6a3e2ab9da09ec4b3d5 (diff) | |
download | python-bugzilla-dbd928a4b7ec66e10cf4b3c0e310ca211d76bbc2.tar.gz python-bugzilla-dbd928a4b7ec66e10cf4b3c0e310ca211d76bbc2.tar.xz python-bugzilla-dbd928a4b7ec66e10cf4b3c0e310ca211d76bbc2.zip |
Fix cookie handling for bugzilla installations not on root of host, add some logging, abstractify login method
Diffstat (limited to 'bugzilla/rhbugzilla.py')
-rw-r--r-- | bugzilla/rhbugzilla.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bugzilla/rhbugzilla.py b/bugzilla/rhbugzilla.py index 5bfaabb..0c905ac 100644 --- a/bugzilla/rhbugzilla.py +++ b/bugzilla/rhbugzilla.py @@ -21,6 +21,10 @@ class RHBugzilla(bugzilla.base.BugzillaBase): bugzilla.base.BugzillaBase.__init__(self,**kwargs) self.user_agent = user_agent + def _login(self,user,password): + '''Backend login method for RHBugzilla.''' + return self._proxy.bugzilla.login(user,password) + #---- Methods and properties with basic bugzilla info # Connect the backend methods to the XMLRPC methods @@ -185,5 +189,6 @@ class RHBugzilla(bugzilla.base.BugzillaBase): def _createbug(self,**data): '''Raw xmlrpc call for createBug() Doesn't bother guessing defaults or checking argument validity. Use with care. - Returns [bug_id, mailresults]''' - return self._proxy.bugzilla.createBug(data,self.user,self.password) + Returns bug_id''' + r = self._proxy.bugzilla.createBug(data,self.user,self.password) + return r[0] |