what would be the best way to migrate from mod_python to mod_wsgi?
with mod_python we just chained handlers in the apache config to strip
off additional info from the user-name. how one would do this with
mod_wsgi?

<Location /projects>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.myuserhandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir /opt/csw/apache2/trac
  PythonDebug On
  PythonOption TracLocale ro_RO
  SetEnv PYTHON_EGG_CACHE /tmp/cache/trac-eggs
</Location>

myuserhandler.py is just 2 lines to strip the user:
import string
from mod_python import apache
def handler(req):
   if req.user!=None:
       req.user=req.user[0:req.user.find('(')-1]
   return apache.OK


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to