aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index 2a1c490..2549faa 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -471,7 +471,7 @@ class Returns(GsxObject):
def get_label(self, part_number):
"""
The Return Label API retrieves the Return Label for a given Return Order Number.
- This is another example where SUDS doesn't play nice with GSX WS (Type not found: 'comptiaCode')
+ (Type not found: 'comptiaCode')
so we're parsing the raw SOAP response and creating a "fake" return object from that.
"""
if not validate(part_number, 'partNumber'):
@@ -817,6 +817,7 @@ def init(env='ut', region='emea'):
url = url.format(env=hosts[env], region=region)
CLIENT = Client(url)
+ CLIENT.options.cache.setduration(weeks=2)
def connect(
user_id,