Mercurial > hg > bts-webui
changeset 174:d9f12ce05039 draft
Moved Debbugs' SOAP URL and Debbugs' SOAP namespace into
settings.py
author | eriol-guest |
---|---|
date | Thu, 07 Jul 2011 07:21:21 +0000 |
parents | 1dcf2b9f84df |
children | 850fe82b51d7 |
files | bts_webui/amancay/btsqueries.py bts_webui/settings.py |
diffstat | 2 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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: