diff options
author | mkaay <mkaay@mkaay.de> | 2010-01-06 22:11:24 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-01-06 22:11:24 +0100 |
commit | d2aa3fceb9f896343b128d40f20a0465cf69efca (patch) | |
tree | a04d975938f19582b2afa2278107bd07e4c86ad4 /module/XMLConfigParser.py | |
parent | cli fix, webinterface db check (diff) | |
download | pyload-d2aa3fceb9f896343b128d40f20a0465cf69efca.tar.xz |
small fixes, new hook stuff
Diffstat (limited to 'module/XMLConfigParser.py')
-rw-r--r-- | module/XMLConfigParser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/XMLConfigParser.py b/module/XMLConfigParser.py index 0d2094dae..5b1966152 100644 --- a/module/XMLConfigParser.py +++ b/module/XMLConfigParser.py @@ -101,16 +101,16 @@ class XMLConfigParser(): if opt.nodeType == opt.ELEMENT_NODE: if option == opt.tagName: replace = opt - text = self.createTextNode(value) + text = self.xml.createTextNode(str(value)) if replace: replace.replaceChild(text, replace.firstChild) else: - newNode = self.createElement(option) + newNode = self.xml.createElement(option) newNode.appendChild(text) if sectionNode: sectionNode.appendChild(newNode) else: - newSection = self.createElement(section) + newSection = self.xml.createElement(section) newSection.appendChild(newNode) root.appendChild(newSection) self.saveData() |