projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90653c
)
[FIX] Seek the position to 0 for a stringio
author
Stephane Wirtel
<stephane@tinyerp.com>
Wed, 28 Jan 2009 12:22:13 +0000
(13:22 +0100)
committer
Stephane Wirtel
<stephane@tinyerp.com>
Wed, 28 Jan 2009 12:22:13 +0000
(13:22 +0100)
lp bug: https://launchpad.net/bugs/321962 fixed
bzr revid: stephane@tinyerp.com-
20090128122213
-eetwscy9k00byh9l
bin/report/render/rml2pdf/trml2pdf.py
patch
|
blob
|
history
diff --git
a/bin/report/render/rml2pdf/trml2pdf.py
b/bin/report/render/rml2pdf/trml2pdf.py
index
1084b3f
..
5f81540
100644
(file)
--- a/
bin/report/render/rml2pdf/trml2pdf.py
+++ b/
bin/report/render/rml2pdf/trml2pdf.py
@@
-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'])))