memory (params), test: fixes updateParams bug

This commit is contained in:
souliane 2014-06-03 17:10:12 +02:00
commit 5f2b90e163

View file

@ -250,7 +250,7 @@ class Params(object):
continue
node = self.__get_unique_node(tgt_parent, child.nodeName, child.getAttribute("name"))
if not node: # The node is new
tgt_parent.appendChild(child)
tgt_parent.appendChild(child.cloneNode(True))
else:
if child.nodeName == "param":
# The child updates an existing parameter, we replace the node