aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-02 21:14:59 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-02 21:14:59 +0300
commit02c2a514ea541dceede70cf33fbf182f15f6db76 (patch)
tree25c3b9a6d1e4c7cfa55ae9711cf63d8a5557b500 /gsxws.py
parent8a6d514696107e0944310286edab18ccd064c312 (diff)
downloadpy-gsxws-02c2a514ea541dceede70cf33fbf182f15f6db76.tar.gz
py-gsxws-02c2a514ea541dceede70cf33fbf182f15f6db76.tar.bz2
py-gsxws-02c2a514ea541dceede70cf33fbf182f15f6db76.zip
Increased suds caching limit
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,