Thank you both for your pointers. They were most helpful - at least I'm getting errors from python now :)<div><br></div><div>I'm a bit confused thought - it's complaining that it can't find paste, which is understandable, since paste is not installed.</div>
<div>Do I need paste if I'm running under mod_wsgi? I was under the impression that it was only required for wsgi standalone...</div><div><br>Kind regards from Iceland,</div><div>Gissur</div><div><br><div class="gmail_quote">
On Thu, Jan 28, 2010 at 10:05 AM, <span dir="ltr"><<a href="mailto:manel.clos@ajgirona.cat">manel.clos@ajgirona.cat</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hi Gissur,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Here is the tilecache.wsgi script I'm
using:</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"># In Apache2's config:<br># WSGIScriptAlias
/tilecache /data/tilecache/tilecache.wsgi</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">import os, sys<br>tilecachepath, wsgi_file =
os.path.split(__file__)<br>if not tilecachepath in
sys.path:<br>
sys.path.append(tilecachepath)</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">from TileCache.Service import Service,
wsgiHandler</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">cfgfiles = (os.path.join(tilecachepath,
"tilecache.cfg"))</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">theService = {}<br>def wsgiApp (environ,
start_response):<br> global theService</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"> cfgs =
cfgfiles<br> if not
theService:<br> theService =
Service.load(cfgs)<br> return wsgiHandler(environ,
start_response, theService)</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">application = wsgiApp</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">The script assumes to be in the tilecache dir, along the
tilecache.cfg file.</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hope this helps.</font></span></div><br>
<div lang="es" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>De:</b> <a href="mailto:tilecache-bounces@openlayers.org" target="_blank">tilecache-bounces@openlayers.org</a>
[mailto:<a href="mailto:tilecache-bounces@openlayers.org" target="_blank">tilecache-bounces@openlayers.org</a>] <b>En nombre de </b>Gissur
Þórhallsson<br><b>Enviado el:</b> jueves, 28 de enero de 2010
4:30<br><b>Para:</b> <a href="mailto:tilecache@openlayers.org" target="_blank">tilecache@openlayers.org</a><br><b>Asunto:</b> [Tilecache]
Tilecache under mod_wsgi<br></font><br></div><div><div></div><div class="h5">
<div></div>Hello,
<div><br></div>
<div>I'm setting up a tilecache instance and wanted to try using
mod_wsgi. </div>
<div>The thing is that I'm running python 2.6 and have other things that depend
on that version of python otherwise I'd just use mod_python.</div>
<div><br></div>
<div>I've got apache 2.2 running on a windows 2003 server already - and mod_wsgi
up and running. I just have no idea how to plug tilecache into that.</div>
<div><br></div>
<div>Has anybody had any experience running tilecache under mod_wsgi? Any
pointers?</div>
<div><br></div>
<div>Kind regards from Iceland,</div>
<div>Gissur Þórhallsson</div>
<div><br></div></div></div></div>
</blockquote></div><br></div>