[mod_python] transhandler difficulties with apache

davekennedy at alescere.com davekennedy at alescere.com
Tue Feb 10 15:04:15 EST 2004


I am trying to accept uri's that include slashes.  What I've tried to do is:

added to httpd.conf:
---
PythonTransHandler /(absolutepath)/THandler.py

---


Here is THandler.py:
---
from mod_python import apache
import string

def transhandler(req):
  req.filename = "/(absolutepath)TC.py
  return apache.OK
---



I've built a request handler TC.py that works.
My error log reports:

---
[Tue Feb 10 15:58:26 2004] [error] [client 12.100.137.66]
PythonTransHandler /(abspath)/THandler.py: ImportError: No module named
/(abspath)/THandler
---


Any ideas?

Thanks much,



-- 
David Kennedy
Program Manager, Alescere LLC.
630.968.8950 x311

Find us on the web at http://www.alescere.com




More information about the Mod_python mailing list