memory (params), test: fixes bug relative to parameter filtering
This commit is contained in:
parent
2a04d556a3
commit
900047c921
1 changed files with 63 additions and 6 deletions
|
|
@ -546,13 +546,16 @@ class Params(object):
|
|||
if category not in cache:
|
||||
# we make a copy for the new xml
|
||||
cache[category] = dest_cat = cat_node.cloneNode(True)
|
||||
to_remove = []
|
||||
for node in dest_cat.childNodes:
|
||||
if node.nodeName != "param":
|
||||
continue
|
||||
if not checkNode(node):
|
||||
dest_cat.removeChild(node)
|
||||
to_remove.append(node)
|
||||
continue
|
||||
dest_params[node.getAttribute('name')] = node
|
||||
for node in to_remove:
|
||||
dest_cat.removeChild(node)
|
||||
new_node = True
|
||||
else:
|
||||
# It's not a new node, we use the previously cloned one
|
||||
|
|
|
|||
Loading…
Reference in a new issue