[Zope] unquote_plus NOT working in an EM ?
Dieter Maurer
dieter@handshake.de
Tue, 23 Apr 2002 21:56:19 +0200
Doyon, Jean-Francois writes:
> Anybody know why if I have:
>
> from urllib import urlopen, urlencode, unquote_plus
>
> and then something like:
>
> print unquote_plus(innerlist[1])
>
> the string WILL NOT come out unquoted for some reason? When I run a test
> from the CLI, no problem, but when inside an External Method, nothing
> happens!
"print" will print to "sys.stdout". Where goes this content to?
The output may be buffered.
Use "import sys; sys.stdout.flush()" to flush the buffer.
Dieter