Control: tags -1 patch

Bastian,

Attached is a patch to implement this which I hope you will find useful.

Thanks for considering including it.

Mark
>From e5ac80638456ca5cf5da69a1699d016b380ab0a0 Mon Sep 17 00:00:00 2001
From: Mark Hindley <m...@hindley.org.uk>
Date: Thu, 29 Jul 2021 17:59:09 +0100
Subject: [PATCH] Support overriding default SOAP location.

---
 debianbts/debianbts.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debianbts/debianbts.py b/debianbts/debianbts.py
index 9cd99d9..eedeeaf 100644
--- a/debianbts/debianbts.py
+++ b/debianbts/debianbts.py
@@ -509,6 +509,17 @@ def set_soap_proxy(proxy_arg):
     """
     _soap_client_kwargs['proxy'] = proxy_arg
 
+def set_soap_location(url):
+    """Set location URL for SOAP client
+
+    You may use this method after import to override the default URL.
+
+    Parameters
+    ----------
+    url : str
+
+    """
+    _soap_client_kwargs['location'] = url
 
 def get_soap_client_kwargs():
     return _soap_client_kwargs
-- 
2.20.1

Reply via email to