Gregory (Grisha) Trubetskoy
grisha at modpython.org
Thu May 13 11:13:26 EDT 2004
On Fri, 14 May 2004, roy wrote: > req.write((str)(req.headers_in())) This looks like C syntax to me... :-) Don't you mean: req.write(str(req.headers_in)) OR req.write(`req.headers_in`) > TypeError: 'mp_table' object is not callable > > 2. Why internal_redirect requests doesn't work? > def handler(req): > req.internal_redirect("www.google.com") > > generates error: > File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 85, in __getattr__ > raise AttributeError, attr > > AttributeError: internal_redirect Hmm... What version of mod_python is this? Also - an internal redirect can only be to a path on your server, not an outside one. Grisha
|