diff MoinMoin/wikiutil.py @ 1111:2aa53ed0afa0

Fix the unrespected cache_dir problem.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Mon, 31 Jul 2006 11:20:22 +0200
parents 75f8c432385f
children 2be8ec7ba817
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sun Jul 30 03:59:50 2006 +0200
+++ b/MoinMoin/wikiutil.py	Mon Jul 31 11:20:22 2006 +0200
@@ -411,13 +411,13 @@
     """ store meta informations as a dict.
     XXX It is not thread-safe, add locks!
     """
-    def __init__(self, metafilename):
+    def __init__(self, metafilename, cache_directory):
         """ create a MetaDict from metafilename """
         dict.__init__(self)
         self.metafilename = metafilename
         self.dirty = False
         self.loaded = False
-        lock_dir = os.path.normpath(os.path.join(metafilename, '..', 'cache', '__metalock__'))
+        lock_dir = os.path.join(cache_directory, '__metalock__')
         self.rlock = lock.ReadLock(lock_dir, 60.0)
         self.wlock = lock.WriteLock(lock_dir, 60.0)