[Zope] return a value from python script

Max M maxmcorp@worldonline.dk
Wed, 6 Jun 2001 22:43:17 +0200


> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> S.Morris

> How can I respond to the 'ok' that is returned in a DTML document? Calling
> the script from a DTML document returns exactly the same thing as calling
> the script directly from the form.

I am not really shure what you are asking here, but are you calling your
python method like <dtml-call "yourScript()"> and not like <dtml-call
yourscript> ?? The first one will execute the method, the second one will
return the text of the method.

Just like Python does.

regards Max M

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act