# HG changeset patch # User eriol-guest # Date 1310023281 0 # Node ID d9f12ce050394469eec670c8a93b6e540e191f8b # Parent 1dcf2b9f84df0c352d9d77d81c3b9d86547abeae Moved Debbugs' SOAP URL and Debbugs' SOAP namespace into settings.py diff --git a/bts_webui/amancay/btsqueries.py b/bts_webui/amancay/btsqueries.py --- a/bts_webui/amancay/btsqueries.py +++ b/bts_webui/amancay/btsqueries.py @@ -1,6 +1,9 @@ +# -*- coding: utf-8 -*- # vim: set sw=4 ts=4 sts=4 noet: import SOAPpy +from django.conf import settings + class BtsQueries: """ Abstract class implementing stubs for the required BTS queries the @@ -43,11 +46,8 @@ SOAP based BtsQueries class. """ def __init__(self): - #self.url = 'http://bugs.debian.org/cgi-bin/soap.cgi' - self.url = 'http://bugs-rietz.debian.org/cgi-bin/soap.cgi' - #self.url = 'http://bugs.donarmstrong.com/cgi-bin/soap.cgi' - self.ns = 'Debbugs/SOAP' - self.server = SOAPpy.SOAPProxy(self.url, self.ns) + self.server = SOAPpy.SOAPProxy(settings.DEBBUGS_SOAP_URL, + settings.DEBBUGS_SOAP_NAMESPACE) def get_bugs_status(self, bug_numbers): result = self.server.get_status(bug_numbers) diff --git a/bts_webui/settings.py b/bts_webui/settings.py --- a/bts_webui/settings.py +++ b/bts_webui/settings.py @@ -98,6 +98,13 @@ 'bts_webui.amancay', ) +# Debbugs' SOAP Interface + +DEBBUGS_SOAP_URL = 'http://bugs.debian.org/cgi-bin/soap.cgi' +#DEBBUGS_SOAP_URL = 'http://bugs-rietz.debian.org/cgi-bin/soap.cgi' +#DEBBUGS_SOAP_URL = 'http://bugs.donarmstrong.com/cgi-bin/soap.cgi' +DEBBUGS_SOAP_NAMESPACE = 'Debbugs/SOAP' + # Import local settings where are defined deployment dependant settings. # SECRET_KEY must be set in local settings to avoid sharing it in VCS. try: