[mod_python] Questions for the FAQ - please check and confirm (req.write() and return) also docs update ...

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Aug 16 09:00:14 EST 2002


On 16 Aug 2002, Fabian Fagerholm wrote:

> If you're using the Publisher handler, you can use req.write() once,
> but then you *have* to return something at the end of your function,
> or things won't work.

You should be able to use write() many times as you like. It should also
be ok to return an empty string *if* you have written something with
write(), otherwise returning an empty document will cause a problem with
Netscape at least.

Grisha






More information about the Mod_python mailing list