diff src/memory/params.py @ 1051:854880a31717

memory (params), test: fixes updateParams bug
author souliane <souliane@mailoo.org>
date Tue, 03 Jun 2014 17:10:12 +0200
parents de415d7984f7
children b29452cab50b
line wrap: on
line diff
--- a/src/memory/params.py	Tue Jun 03 15:10:51 2014 +0200
+++ b/src/memory/params.py	Tue Jun 03 17:10:12 2014 +0200
@@ -250,7 +250,7 @@
                     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