[Zope-dev] ANN: ZScript 0.5 - DTML without the punctuation
Jim Fulton
jim@digicool.com
Wed, 30 Jun 1999 14:28:18 -0400
"Phillip J. Eby" wrote:
>
> (snip) .. Ever wished you could return something other
> than a string from a DTML method, so you wouldn't have to write an
> ExternalMethod? Waiting with bated breath for a "safe Python method"
> product?
(snip)
> The ZScript classes also add a 'return' tag which can take a name or expr,
> just like var. Unlike var, however, the result is not converted into a
> string, but instead is returned to the ZScript's caller, breaking out of
> the entire method in the process.
I like the idea of the return tag so much, I just checked it in.
In Zope 2.0, DTML will have a return tag that works as you describe.
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.