diff options
author | Filipp Lepalaan <f@230.to> | 2013-05-20 00:16:45 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-05-20 00:16:45 +0300 |
commit | afd1136818b9a99b187c2c7adc5c369172eda22e (patch) | |
tree | 7853cb7a9023164add560f981e1091e69cce8e5a /gsxws/core.py | |
parent | 5e13bcd86093ccd50ef8e4bf79046eca4e0ab9ac (diff) | |
download | py-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.py | 3 |
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): |