Hi there,
  I am having problem in passing the right locale to trac using  
mod_wsgi, with mod_python it used to work with a PythonOption  
directive in the apache configuration, with mod_wsgi, I tried to use  
the following:

SetEnv trac.locale "en_US.UTF-8"

but doesn't seem to have any effect. It also looks like the wsgi  
script needs to be loaded with explicit os.environ settings to work.  
My actual configuration:

# Define WSGI parameters
WSGIDaemonProcess wsgi-project user=www-data group=www-data threads=25
WSGIScriptAlias / /var/www/project/trac.wsgi

<Directory /var/www/project/trac/>
        WSGIProcessGroup wsgi-project
         WSGIApplicationGroup %{GLOBAL}
         SetEnv trac.env_path /var/www/project/trac/
         SetEnv trac.locale "en_US.UTF-8"
         Order deny,allow
         Allow from all
</Directory>

and the wsgi script contains:

import os
os.environ['TRAC_ENV'] = '/var/www/project/trac'
os.environ['PYTHON_EGG_CACHE'] = '/var/cache/python'
import trac.web.main
application = trac.web.main.dispatch_request

Looks like without the os.environ apache raises a 500 Internal Error,  
and the log sais that Trac needs to have the environment variables set.

I would like to use only one of the two way, and have it working :-)

Ideas?

Thanks
ANdreaT

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to