summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Plugin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 9a4d8fb1e..9a3b73e82 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -358,8 +358,7 @@ class PrioDir(Plugin, XMLDirectoryBacked):
data = matching[index].cache[1][entry.tag][name]
if data.has_key('__text__'):
entry.text = data['__text__']
- del data['__text__']
if data.has_key('__children__'):
[entry.append(copy.deepcopy(item)) for item in data['__children__']]
- del data['__children__']
- [entry.attrib.__setitem__(key, data[key]) for key in data.keys()]
+ [entry.attrib.__setitem__(key, data[key]) for key in data.keys() \
+ if not key.startswith('__')]