Roger Binns
rogerb at rogerbinns.com
Mon Apr 30 20:07:52 EDT 2007
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Graham Dumpleton wrote: > Perhaps look at the req.internal_redirect() method. See: > > http://www.modpython.org/live/current/doc-html/pyapi-mprequest-meth.html > > If you need access to req.user of the parent request from the sub > request, you have to access req.prev.user from the sub request to get > it from memory. As far as I can tell, that method does an actual redirect which is not what I want. In the output of /admin, I want to include the output of /api/object/whatever (amongst other things). If they were running on different web servers then I would have to use a HTTP client and do things that way. In this case they are running on the same server, and the minimum I need to answer is "are the credentials supplied to /admin sufficient for /api/object/whatever" Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGNoTYmOOfHg372QQRAgKPAKCWLGO8oRU+8vsPRTuGvOkwb6S0eACfW+od D1MhH6pkrkLYe85cMkBS7aU= =TUjI -----END PGP SIGNATURE-----
|