[FIX] eval_context and eval_domain should *not* modify the dicts they're given (without cloning them), especially since they're creating circular references (which blow up when they're serialized by simplejson)

bzr revid: xmo@openerp.com-20110412121305-mq6l9a4co5xxrfkz
This commit is contained in:
Xavier Morel 2011-04-12 14:13:05 +02:00
parent 5c5542e179
commit ce82767d16
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ class OpenERPSession(object):
if isinstance(context_to_eval, dict):
return context_to_eval
ctx = context or {}
ctx = dict(context or {})
ctx['context'] = ctx
# if the domain was unpacked from JSON, it needs the current
@ -252,7 +252,7 @@ class OpenERPSession(object):
if isinstance(domain, list):
return domain
ctx = context or {}
ctx = dict(context or {})
ctx['context'] = ctx
# if the domain was unpacked from JSON, it needs the current