[Zope] handling exceptions for external methods

Dieter Maurer dieter at handshake.de
Sun Jul 8 04:38:22 EDT 2007


David Bear wrote at 2007-7-6 14:55 -0700:
> ...
>5 external methods do not have access to stdin/stdout 

They have.

However, "stdin/stdout/stderr" have not much worth
in "server mode". "server mode" means that there is no
"terminal" where this IO comes from is directed to.

You can change Zope's startup script and then redirect
the standard IO channels (stdin/out/err) to files (we
do that occasionally, to catch messages written by external components).
Or, you can start Zope in the "foreground".

In both cases, your "External Method" can use "stdout/stderr" (use
of "stdin" is very doubtful) to provide messages to use.



-- 
Dieter


More information about the Zope mailing list