[Zope] ANNOUNCE: #try tag v0.1.0
Paul Everitt
Paul@digicool.com
Thu, 25 Mar 1999 09:05:57 -0500
Jordan wrote:
> Okay after I opened my big mouth I had to deliver. :)
>
> NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE
>
> Here's an example of what this is:
>
> <!--#try-->
> This is the try block
> <!--#raise type="bar"-->
> You suck
> <!--#/raise-->
> <!--#except-->
> There was an exception! Yay!
> <p>It was <!--#var errname-->
> <p>It has this to say: <!--#var errmsg-->
> <!--#/try-->
>
> I incorporated a suggestion that except should handle <!--#except
> NameError--> to specify the error to trap. Also, <!--#except--> will
> handle any errors by default.
Damn, it worked!
> This is packaged as a product, is this the best way to
> distribute this??
I'll get Amos to add it to the contrib area.
Gotta admit, I'm *really* happy to see this. Guess I have to call you
Your Most Revered Magnificenous now. Or how about just Tim? :^)
--Paul