aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/core.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-20 00:16:45 +0300
committerFilipp Lepalaan <f@230.to>2013-05-20 00:16:45 +0300
commitafd1136818b9a99b187c2c7adc5c369172eda22e (patch)
tree7853cb7a9023164add560f981e1091e69cce8e5a /gsxws/core.py
parent5e13bcd86093ccd50ef8e4bf79046eca4e0ab9ac (diff)
downloadpy-gsxws-afd1136818b9a99b187c2c7adc5c369172eda22e.tar.gz
py-gsxws-afd1136818b9a99b187c2c7adc5c369172eda22e.tar.bz2
py-gsxws-afd1136818b9a99b187c2c7adc5c369172eda22e.zip
Update get_label
Diffstat (limited to 'gsxws/core.py')
-rw-r--r--gsxws/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index 1fecb4c..63b9f81 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -384,6 +384,9 @@ class GsxObject(object):
if k in ['packingList', 'proformaFileData', 'returnLabelFileData']:
v = base64.b64decode(v)
+ of = tempfile.NamedTemporaryFile(suffix=".pdf", delete=False)
+ of.write(v)
+ v = of.name
if isinstance(v, basestring):