Missing tile argument in TileCache.Caches.Disk.attemptLock

1 message Options
Embed this post
Permalink
Frederic Junod

Missing tile argument in TileCache.Caches.Disk.attemptLock

Reply Threaded More More options
Print post
Permalink
Hi all,

Pass the tile to the unlock function, see attached patch.

Regards

--
Frédéric Junod
Camptocamp SA

[CachesDiskUnlock.patch]

Index: tilecache/TileCache/Caches/Disk.py
===================================================================
--- tilecache/TileCache/Caches/Disk.py (revision 393)
+++ tilecache/TileCache/Caches/Disk.py (working copy)
@@ -108,7 +108,7 @@
             if st.st_ctime + self.stale < time.time():
                 warnings.warn("removing stale lock %s" % name)
                 # remove stale lock
-                self.unlock()
+                self.unlock(tile)
                 self.makedirs(name)
                 return True
         except OSError:


_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache