[Zope] MessageDialog in Python Script

Ausum Studio ausum_studio@hotmail.com
Mon, 2 Dec 2002 09:53:33 -0500


Inside a PythonScript, you can use:

context.REQUEST.RESPONSE.write(string)

as much times as you need it.

You need to take into account that all what your page will render are the
streamed strings, and that any 'return something' at the end of the script
wil not work, unless it's another response like 'RESPONSE.redirect(url)'.
Because of that, you may avoid using it for generating html code that relies
on closing tags, like tables.



Ausum




----- Original Message -----
From: "Elena Schulz" <elena.schulz@gmx.net>
To: <zope@zope.org>
Sent: Friday, November 29, 2002 9:56 AM
Subject: [Zope] MessageDialog in Python Script


> Hi,
>
> is there a possibility to return a message while executing without to
> interupt the Script or redirect to another one (because of
> variable-transfer)? As message from Globals.MessageDialog is unauthorized
in
> Python Scripts.
>
> -- many thanks for your replies, Elena
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>