From: jamesbunton Date: Fri, 21 Jul 2006 14:05:27 +0000 (+0000) Subject: Fixed new hashing scheme to work with deregistration. X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/c3135ec2b9570206e859a53bddd17e972fa5298c Fixed new hashing scheme to work with deregistration. git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@202 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/src/xdb.py b/src/xdb.py index e3caf0e..eb29e5c 100644 --- a/src/xdb.py +++ b/src/xdb.py @@ -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)