[Tilecache] Config file priority with mod_python

Christopher Schmidt crschmidt at metacarta.com
Fri May 16 11:27:39 EDT 2008


On Thu, May 15, 2008 at 09:50:08PM +0200, Sylvain Pasche wrote:
> Hi,
> 
> I've got a Tilecache service configured with mod_python, with an Apache
> config looking like:
> 
> <Location /tilecache/myproject>
>     AddHandler python-program .py
>     PythonHandler TileCache.Service
>     PythonOption TileCacheConfig /path/to/tilecache.cfg
> </Location>
> 
> The base parameter of the cache section isn't taken into account.
> 
> [cache]
> type=DiskCache
> base=/var/tmp/
> 
> Tiles are always saved in /tmp, which is the configration from
> /etc/tilecache.cfg.
> 
> Shouldn't the tilecache configuration file set from the TileCacheConfig
> Apache parameter should take precedence over the one from /etc?
> 
> With the following patch applied, I'm getting the expected result.

Yep, this seems sane. I've committed that into trunk; will be in the
next release. Does anything you're doing benefit from me doing a new
release, or are you fine having this as a local modification until I do
a new release?

> 
Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list