[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:
parent
5c5542e179
commit
ce82767d16
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue