[mod_python] Setting req->user for mod_dav_svn

Deron Meranda deron.meranda at gmail.com
Tue Aug 1 11:39:26 EDT 2006

On 7/31/06, Graham Dumpleton <grahamd at dscpl.com.au> wrote:
> Deron Meranda wrote ..
> > Can I set the req->user member from within mod_python (the docs
> > say it is read-only),
> In 3.2.8+ it is writable, the documentation is wrong. The documentation
> in 3.3 is correct.

Well, I'm not having so much luck with this.  Again I'm at
   Apache 2.0.52
   mod_python 3.2.10
   mod_dav_svn (subversion) 1.3.2

When you say req.user is writable, is that just for the member of the
Python "req" object, or does a write also modify the underlying
Apache C structure's request_rec->user  (char*) member?

I have a PythonAccessHandler which is just forcing a

   req.user = "foobar"

I can verify it is getting called, yet when I commit changes via
subversion the resulting change logs still just say "(no author)".

I know that the request_rec->ap_auth_type member is not getting
set (because of said limitations in mod_python), but that member
is never referenced in the mod_dav_svn module.  It only uses the
"user" member from what I can tell.
Deron Meranda

More information about the Mod_python mailing list