[Tilecache] PATCH:Sendfile and non-disk caches

Nico Mandery nico.mandery at geops.de
Mon Nov 30 03:51:38 EST 2009


Hello list,

I just noticed the sendfile patch from SVN r396 causes an error
on caches which do not inherit from the Disk-Cache, like for example the
S3-Cache.

The mod_ython, wsgi and cgi-handlers check for an attribute "sendfile"
on the cache class. This attribute only exists in Disk-based caches.

The attached patch adds this attribute to the Cache-class with the
default value False.

regards,
nico

-- 
nico.mandery at geops.de
-------------- next part --------------
Index: TileCache/Cache.py
===================================================================
--- TileCache/Cache.py  (revision 397)
+++ TileCache/Cache.py  (working copy)
@@ -7,6 +7,7 @@
         self.stale    = float(stale_interval)
         self.timeout = float(timeout)
         self.readonly = readonly
+        self.sendfile = False
         self.expire = expire
         if expire != False:
             self.expire = long(expire)


More information about the Tilecache mailing list