]> code.delx.au - pymsnt/blobdiff - src/xdb.py
Fixed jid.internJID that somehow slipped through
[pymsnt] / src / xdb.py
index 23da7ad971e2edcfee64b0371652309b20913dc4..a3e3b5d0adefd90dc431064394f97d731d0ff6f5 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 2004-2005 James Bunton <james@delx.cjb.net>
+# Copyright 2004-2006 James Bunton <james@delx.cjb.net>
 # Licensed for distribution under the GPL version 2, check COPYING for details
 
-from tlib import xmlw
+from twisted.words.xish.domish import parseFile, Element
 from debug import LogEvent, INFO, WARN
 import os
 import os.path
@@ -45,7 +45,7 @@ class XDB:
                        file = mangle(file)
                
                hash = makeHash(file)
-               document = xmlw.parseFile(self.name + X + hash + X + file + ".xml")
+               document = parseFile(self.name + X + hash + X + file + ".xml")
                
                return document
        
@@ -104,7 +104,7 @@ class XDB:
                        except IOError:
                                pass
                        if(not document):
-                               document = xmlw.Element((None, "xdb"))
+                               document = Element((None, "xdb"))
                        
                        # Remove the existing node (if any)
                        for child in document.elements():