summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-08-26 10:51:48 -0400
committerWill Woods <wwoods@redhat.com>2008-08-26 10:51:48 -0400
commited5255764779dbbee7d6fba22d6b24b04e7853bd (patch)
tree71fc6cc7d9dadc552d528fdfd884994f44810f32 /bugzilla
parent2f4456720c01793688ca0ac10546ad3328d6a641 (diff)
downloadpython-bugzilla-ed5255764779dbbee7d6fba22d6b24b04e7853bd.tar.gz
python-bugzilla-ed5255764779dbbee7d6fba22d6b24b04e7853bd.tar.xz
python-bugzilla-ed5255764779dbbee7d6fba22d6b24b04e7853bd.zip
Fix version/useragent for RHBugzilla
Diffstat (limited to 'bugzilla')
-rw-r--r--bugzilla/rhbugzilla.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/bugzilla/rhbugzilla.py b/bugzilla/rhbugzilla.py
index 978999b..3cbc83c 100644
--- a/bugzilla/rhbugzilla.py
+++ b/bugzilla/rhbugzilla.py
@@ -12,15 +12,16 @@
import bugzilla.base
from bugzilla3 import Bugzilla32
-version = '0.2'
-user_agent = bugzilla.base.user_agent + ' RHBugzilla/%s' % version
-
class RHBugzilla(bugzilla.base.BugzillaBase):
'''Concrete implementation of the Bugzilla protocol. This one uses the
methods provided by Red Hat's Bugzilla 2.18 variant.'''
+
+ version = '0.2'
+ user_agent = bugzilla.base.user_agent + ' RHBugzilla/%s' % version
+
def __init__(self,**kwargs):
bugzilla.base.BugzillaBase.__init__(self,**kwargs)
- self.user_agent = user_agent
+ self.user_agent = self.__class__.user_agent
def _login(self,user,password):
'''Backend login method for RHBugzilla.'''
@@ -380,7 +381,7 @@ class RHBugzilla3(Bugzilla32, RHBugzilla):
raise AttributeError, "Can't find cc list in bug %s" % str(id)
self._updatecc(id,r['cc'],'delete')
self._updatecc(id,cclist,'add')
- # FIXME we don't check inputs on other backend methods, maybe this
+ # XXX we don't check inputs on other backend methods, maybe this
# is more appropriate in the public method(s)
else:
raise ValueError, "action must be 'add','delete', or 'overwrite'"