forked from pool/python-bugzilla
* many new parameters for bugzilla command-line tool like --target_milestone, --private, --status, --assignee, et all * add support for Bugzilla 36 * Unicode related fixes - SUSE specific fixes * novell bugzilla support in getBugzillaClassForURL * obfuscated password support in oscrc * move novell bugzilla to 3.4 * xmlrpclib changes done in python 2.7 from master [bug#685842] - create suse branch for stashing SUSE specific changes https://gitorious.org/opensuse/python-bugzilla/commits/suse OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=13
27 lines
801 B
Diff
27 lines
801 B
Diff
From ccea238ede22c81100c0456ede42642f2f82947b 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 18/19] 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 97d8706..8b26835 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.4.1
|
|
|