[FIX] Seek the position to 0 for a stringio

lp bug: https://launchpad.net/bugs/321962 fixed

bzr revid: stephane@tinyerp.com-20090128122213-eetwscy9k00byh9l
This commit is contained in:
Stephane Wirtel
2009-01-28 13:22:13 +01:00
parent a90653c98f
commit aca14d8048
+2
View File
@@ -641,8 +641,10 @@ class _rml_flowable(object):
else:
import base64
image_data = base64.decodestring(node.firstChild.nodeValue)
image = StringIO()
image.write(image_data)
image.seek(0)
return platypus.Image(image, mask=(250,255,250,255,250,255), **(utils.attr_get(node, ['width','height'])))
else:
return platypus.Image(node.getAttribute('file'), mask=(250,255,250,255,250,255), **(utils.attr_get(node, ['width','height'])))