Skip to content

Commit e2e6390

Browse files
committed
Export (and auto-select) the Bugzilla34 and Bugzilla36 classes.
1 parent 2a6b1a3 commit e2e6390

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

bugzilla/__init__.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
1010
# the full text of the license.
1111

12-
from bugzilla3 import Bugzilla3, Bugzilla32
12+
from bugzilla3 import Bugzilla3, Bugzilla32, Bugzilla34, Bugzilla36
1313
from rhbugzilla import RHBugzilla, RHBugzilla3
1414
from nvlbugzilla import NovellBugzilla
1515
from base import version
@@ -18,7 +18,8 @@
1818
log = logging.getLogger("bugzilla")
1919

2020
# advertised class list
21-
classlist = ['Bugzilla3', 'Bugzilla32', 'RHBugzilla3', 'NovellBugzilla']
21+
classlist = ['Bugzilla3', 'Bugzilla32', 'Bugzilla34', 'Bugzilla36',
22+
'RHBugzilla3', 'NovellBugzilla']
2223

2324
def getBugzillaClassForURL(url):
2425
log.debug("Choosing subclass for %s" % url)
@@ -53,10 +54,14 @@ def getBugzillaClassForURL(url):
5354
else:
5455
c = RHBugzilla
5556
elif bzversion.startswith('3.'):
56-
if bzversion.startswith('3.0'):
57-
c = Bugzilla3
58-
else: # 3.1 or higher
57+
if bzversion.startswith('3.6'):
58+
c = Bugzilla36
59+
elif bzversion.startswith('3.4'):
60+
c = Bugzilla34
61+
elif bzversion.startswith('3.2'):
5962
c = Bugzilla32
63+
else:
64+
c = Bugzilla3
6065

6166
return c
6267

0 commit comments

Comments
 (0)