On 2 September 2011 17:45, Dominik Ruf <[email protected]> wrote: > The USER_EMAIL variable is used by a CGI application. (bugzilla to be exact) > What kin of additional package do I need. > I'm not sure if I understand this correctly, does such a package already > exist?
I experimented with Apache Python bindings with SWIG. Results at: https://bitbucket.org/grahamdumpleton/apswigpy/wiki/Home There is a directive in mod_wsgi called: WSGIPassApacheRequest On which passes reference to AAA function in mod_wsgi: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms You can then do something like: import apache.httpd r = apache.httpd.request_rec(environ['apache.request_rec']) r.subprocess_env['USER_EMAIL'] = 'asdasads' The AAA functions though service a specific purpose and can't be hooked for arbitrary purposes. You might manage it with allow_access() function so long as that isn't too early. The apswigpy isn't really supported as there wasn't any 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.
