Sean True
seant at webreply.com
Tue Jul 3 14:02:13 EST 2001
We're implementing a bunch of stuff on top of mod_python, and have avoided using the translation handler. Until today. I'd like to rewrite the URI -- but req.uri is readonly. I can't find a req.uri() method ... I'd like to find the equivalent of the CGI document root -- but apache.build_cgi_env() is not happy about running inside the transhandler(): File /usr/local/pythonpackages/mod_python/apache.py", line 189, in Dispatch result = object(self.req) File "/usr/local/pythonpackages/phtml/phtml.py", line 14, in transhandler env = apache.build_cgi_env(req) File "/usr/local/pythonpackages/mod_python/apache.py", line 418, in build_cgi_env env[k] = req.subprocess_env[k] KeyError: SCRIPT_FILENAME Does anyone have a creative or even functional example of a translation handler? -- Sean ------- Sean True WebReply.Com, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: Sean True.vcf Type: text/x-vcard Size: 309 bytes Desc: not available Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20010703/f6dc2e8a/SeanTrue-0003.vcf
|