Bugfixes
bzr revid: fp@tinyerp.com-e355c7dafbfc4332b05adcafbcc73f0403516932
This commit is contained in:
parent
0feb782c6a
commit
ad71a8d02d
|
@ -332,7 +332,8 @@ class _rml_canvas(object):
|
||||||
if not node.hasAttribute('file'):
|
if not node.hasAttribute('file'):
|
||||||
|
|
||||||
if node.hasAttribute('name'):
|
if node.hasAttribute('name'):
|
||||||
s = self.images[node.getAttribute('name')]
|
image_data = self.images[node.getAttribute('name')]
|
||||||
|
s = StringIO.StringIO(image_data)
|
||||||
else:
|
else:
|
||||||
import base64
|
import base64
|
||||||
image_data = base64.decodestring(node.firstChild.nodeValue)
|
image_data = base64.decodestring(node.firstChild.nodeValue)
|
||||||
|
|
|
@ -70,6 +70,8 @@ class Env(dict):
|
||||||
|
|
||||||
def _eval_expr(cr, ident, workitem, action):
|
def _eval_expr(cr, ident, workitem, action):
|
||||||
ret=False
|
ret=False
|
||||||
|
print '***'
|
||||||
|
print action
|
||||||
for line in action.split('\n'):
|
for line in action.split('\n'):
|
||||||
uid=ident[0]
|
uid=ident[0]
|
||||||
model=ident[1]
|
model=ident[1]
|
||||||
|
@ -81,6 +83,7 @@ def _eval_expr(cr, ident, workitem, action):
|
||||||
else:
|
else:
|
||||||
wf_service = netsvc.LocalService("object_proxy")
|
wf_service = netsvc.LocalService("object_proxy")
|
||||||
env = Env(wf_service, cr, uid, model, ids)
|
env = Env(wf_service, cr, uid, model, ids)
|
||||||
|
print line
|
||||||
ret = eval(line, env)
|
ret = eval(line, env)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue