[FIX] Use a copy of the local context

bzr revid: stephane@openerp.com-20100615121213-7i4foiqdssq0rgjf
This commit is contained in:
Stephane Wirtel
2010-06-15 14:12:13 +02:00
parent 977fb7dcd0
commit 38810b8ae6
+1 -1
View File
@@ -55,7 +55,7 @@ def xml2str(s):
def _child_get(node, self=None, tagname=None):
for n in node:
if self and self.localcontext and n.get('rml_loop'):
oldctx = self.localcontext
oldctx = dict(self.localcontext)
for ctx in eval(n.get('rml_loop'),{}, self.localcontext):
self.localcontext.update(ctx)