On 13 February 2010 01:46, Gunnlaugur Thor Briem <[email protected]> wrote:
> On Fri, Feb 12, 2010 at 1:21 PM, Gunnlaugur Thor Briem
> <[email protected]> wrote:
>>
>> I'll gladly try out apswigpy and tell you how it goes, but in the end I
>> will probably want to avoid changing over to embedded mode if at all
>> possible.
>
> Tested it, worked fine except that I had to add version=(2,2) to
> __init__.py, to work around the apache.httpd import bombing on the missing
> version attribute. I set WSGIApacheExtensions On, and put this in a trivial
> test.wsgi in an embedded-mode site:
>     req = apache.httpd.request_rec(environ["apache.request_rec"])
>     req.user = 'foo'
> and sure enough, I got the foo username in the access log.
> Still, a way that also works in daemon mode would be preferable.

Use mod_wsgi 3.X and not the older mod_wsgi version you are using. You
will need to use though:

  WSGIPassApacheRequest On

instead of WSGIApacheExtensions as how it was enabled was changed.

Yes I know that change wasn't documented. This was because of lack of
interest in it. :-)

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to