summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2008-06-16 11:24:25 +0000
committerFabien Pinckaers <fp@tinyerp.com>2008-06-16 11:24:25 +0000
commitad71a8d02d50e2cfd1dae16698a4793e25ea461e (patch)
tree108f2906162fde7e26cc866b5bc01ce6d5552147 /bin
parent0feb782c6abaa7a538fbeee5bac8b4240925f110 (diff)
Bugfixes
bzr revid: fp@tinyerp.com-e355c7dafbfc4332b05adcafbcc73f0403516932
Diffstat (limited to 'bin')
-rwxr-xr-xbin/report/render/rml2pdf/trml2pdf.py3
-rw-r--r--bin/workflow/wkf_expr.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/report/render/rml2pdf/trml2pdf.py b/bin/report/render/rml2pdf/trml2pdf.py
index 8e3b1d35585..25ec57ebb12 100755
--- a/bin/report/render/rml2pdf/trml2pdf.py
+++ b/bin/report/render/rml2pdf/trml2pdf.py
@@ -332,7 +332,8 @@ class _rml_canvas(object):
if not node.hasAttribute('file'):
if node.hasAttribute('name'):
- s = self.images[node.getAttribute('name')]
+ image_data = self.images[node.getAttribute('name')]
+ s = StringIO.StringIO(image_data)
else:
import base64
image_data = base64.decodestring(node.firstChild.nodeValue)
diff --git a/bin/workflow/wkf_expr.py b/bin/workflow/wkf_expr.py
index 4e7dc549dd1..434e091f4da 100644
--- a/bin/workflow/wkf_expr.py
+++ b/bin/workflow/wkf_expr.py
@@ -70,6 +70,8 @@ class Env(dict):
def _eval_expr(cr, ident, workitem, action):
ret=False
+ print '***'
+ print action
for line in action.split('\n'):
uid=ident[0]
model=ident[1]
@@ -81,6 +83,7 @@ def _eval_expr(cr, ident, workitem, action):
else:
wf_service = netsvc.LocalService("object_proxy")
env = Env(wf_service, cr, uid, model, ids)
+ print line
ret = eval(line, env)
return ret