forked from pool/python-bugzilla
* backport --outputformat feature from git OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=16
27 lines
799 B
Diff
27 lines
799 B
Diff
From ba5277024722c6083e10ddce5e070cb622572148 Mon Sep 17 00:00:00 2001
|
|
From: Jan Matejek <jan.matejek@novell.com>
|
|
Date: Mon, 23 May 2011 14:20:57 +0200
|
|
Subject: [PATCH 15/17] novell bugzilla support in getBugzillaClassForURL
|
|
|
|
---
|
|
bugzilla/__init__.py | 3 +++
|
|
1 files changed, 3 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py
|
|
index f60fd54..a3a88d2 100644
|
|
--- a/bugzilla/__init__.py
|
|
+++ b/bugzilla/__init__.py
|
|
@@ -23,6 +23,9 @@ classlist = ['Bugzilla3', 'Bugzilla32', 'Bugzilla34', 'Bugzilla36',
|
|
|
|
def getBugzillaClassForURL(url):
|
|
log.debug("Choosing subclass for %s" % url)
|
|
+ if url.startswith('https://bugzilla.novell.com'):
|
|
+ return NovellBugzilla
|
|
+
|
|
s = xmlrpclib.ServerProxy(url)
|
|
rhbz = False
|
|
bzversion = ''
|
|
--
|
|
1.7.6
|
|
|