On Oct 29, 9:20 pm, Christian Boos <[email protected]> wrote:
> Hello Graham,
>
>
>
>
>
> Graham Dumpleton wrote:
>
> > On Oct 29, 7:00 pm, Leho Kraav <[email protected]> wrote:
>
> >> hi all wsgi gurus
>
> >> my goal was to get several isolated trac no-site-packages virtualenvs
> >> running undermod_wsgi: 0.11 virtualenv for bunch of live projets,
> >> 0.12-dev1 for project dev1 and 0.12-dev2 for project dev2. but i am
> >> somewhat unclear regarding ApplicationGroups and ProcessGroups - some
> >> setup guides did it one way, some the other. so i also seem to have a
> >> mix in my config file. what about having both dev1 and dev2 both in
> >> ApplicationGroup %{SERVER}%, should they be in separate AG, or does
> >> separate PGs take care of that? perhaps someone could tell me if
> >> there's something to be fixed here:
>
> > For Trac, due to limitations in Python wrappers for subversion, you
> > must use:
>
> >   WSGIApplicationGroup %{GLOBAL}
>
> > So, if using subversion you don't have a choice and if need separation
> > must use daemon process groups instead.
>
> Speaking of that, I'm not sure if you've seen that someone recently
> reported the "instance.__dict__ not accessible in restricted mode" issue
> withmod_wsgi2.5, despite his use of WSGIApplicationGroup %{GLOBAL}
> (seehttp://trac.edgewall.org/ticket/3371#comment:73).
>
> As we don't see the whole configuration he was using, it might be that
> the WSGIApplicationGroup directive was wrongly applied. OTOH, he
> reported success with a similar setup using mod_python, so it's a bit
> troubling. Are you aware of situations where that RuntimeError could
> still occur withmod_wsgi2.5 even when WSGIApplicationGroup %{GLOBAL}
> is used?

Would need to see their full configuration to be sure. I would suspect
they must have missed something as know of no issues in this area.

The only way to absolutely verify that running in correct interpreter
is to use a WSGI wrapper such as described in:

  
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response

to capture values of:

  mod_wsgi.process_group
  mod_wsgi.application_group

as received by Trac.

If running in main interpreter, then mod_wsgi.application_group will
be an empty string. Ie., this is what %{GLOBAL} equates to.

Graham
--~--~---------~--~----~------------~-------~--~----~
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