Improve eval of context in action

This commit is contained in:
Cédric Krier committed 2008-06-02 17:17:11 +02:00
1 parent 1e655f593b
commit d452807dae
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ class Action(object):
ctx.update(rpc.CONTEXT)
eval_ctx = ctx.copy()
eval_ctx['datetime'] = datetime
ctx.update(eval(action.get('context','{}'), eval_ctx))
ctx.update(eval(action.get('context') or '{}', eval_ctx))
ctx.update(context)
domain_context = ctx.copy()