]> code.delx.au - pymsnt/commitdiff
Fixed new hashing scheme to work with deregistration.
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Fri, 21 Jul 2006 14:05:27 +0000 (14:05 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Fri, 21 Jul 2006 14:05:27 +0000 (14:05 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@202 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/xdb.py

index e3caf0e97b50d7ff8b24ddf7b220f0f4e290099c..eb29e5c49d8601f65e634a2b1b3919d5682682a9 100644 (file)
@@ -120,8 +120,9 @@ class XDB:
        
        def remove(self, file):
                """ Removes an XDB file """
-               file = self.name + X + file[0:2] + X + file + ".xml"
-               if(self.mangle):
+               hash = makeHash(file)
+               file = self.name + X + hash + X + file + ".xml"
+               if self.mangle:
                        file = mangle(file)
                try:
                        os.remove(file)