|
9 | 9 | # option) any later version. See http://www.gnu.org/copyleft/gpl.html for |
10 | 10 | # the full text of the license. |
11 | 11 |
|
| 12 | +__version__ = "0.7.0" |
| 13 | +version = __version__ |
| 14 | + |
12 | 15 | import logging |
13 | 16 | import xmlrpclib |
14 | 17 |
|
15 | | -from bugzilla.base import version |
16 | 18 | from bugzilla.bugzilla3 import Bugzilla3, Bugzilla32, Bugzilla34, Bugzilla36 |
17 | 19 | from bugzilla.bugzilla4 import Bugzilla4 |
18 | 20 | from bugzilla.nvlbugzilla import NovellBugzilla |
19 | 21 | from bugzilla.rhbugzilla import RHBugzilla, RHBugzilla3, RHBugzilla4 |
20 | 22 |
|
21 | | -log = logging.getLogger("bugzilla") |
22 | | - |
23 | 23 | # advertised class list |
24 | 24 | classlist = ['Bugzilla3', 'Bugzilla32', 'Bugzilla34', |
25 | 25 | 'Bugzilla36', 'Bugzilla4', 'RHBugzilla3', 'RHBugzilla4', |
26 | 26 | 'NovellBugzilla'] |
27 | 27 |
|
| 28 | +log = logging.getLogger("bugzilla") |
| 29 | + |
| 30 | + |
28 | 31 |
|
29 | 32 | def getBugzillaClassForURL(url): |
30 | 33 | log.debug("Choosing subclass for %s" % url) |
@@ -76,7 +79,7 @@ class Bugzilla(object): |
76 | 79 | to use and uses that. Requires 'url' parameter so we can check available |
77 | 80 | XMLRPC methods to determine the Bugzilla version.''' |
78 | 81 | def __init__(self, **kwargs): |
79 | | - log.info("Bugzilla v%s initializing" % version) |
| 82 | + log.info("Bugzilla v%s initializing" % __version__) |
80 | 83 | if 'url' not in kwargs: |
81 | 84 | raise TypeError("You must pass a valid bugzilla xmlrpc.cgi URL") |
82 | 85 |
|
|
0 commit comments