durusmail: quixote-users: redirection of stdout in forms
redirection of stdout in forms
2004-11-19
redirection of stdout in forms
Thomas Guettler
2004-11-19
Am Mittwoch, 17. November 2004 10:42 schrieb Michele Simionato:
> I do NOT see a line "hello from form" so I guess inside
> the form sys.stdout is redirected somewhere else. How is that?

Hi,

if you use cgitb for tracebacks, you can debug this with:
raise(str(sys.stdout))

At least on the interactive prompt you get the name
of the file:
>>> f=open('/etc/hosts')
>>> print f


HTH,
 Thomas



reply