mò +á¸Ec@sOdZdZddd!ZdklZlZlZlZdfd„ƒYZdS( sRaising exceptions Errors can be raised from DTML using the 'raise' tag. For example:: The value you entered is not valid s9$Id: DT_Raise.py 40218 2005-11-18 14:39:19Z andreasjung $s$Revision: 1.13 $i iþÿÿÿ(s parse_paramss name_params render_blockssstrtRaisecBs2tZfZdZdZd„Zd„ZeZRS(NtraisetcCs_|d\}}}|i|_t|ddddƒ}t|ddddƒ\|_|_dS(NittypeRtexprRitattr( tblocksttnametargstsectiontselft parse_paramst name_paramt__name__R(R RRRR ((t8/data/zmath/zope/lib/python/DocumentTemplate/DT_Raise.pyt__init__$s cCs¨|i}|djo<|i}|ddjoti|ƒot|}qun$y|i|ƒ}Wn d}nXyt |i |ƒ}Wn d}nX||‚dS(NiûÿÿÿtErrorsInvalid Error Type ExpressionsInvalid Error Value( R RtNoneR ttt __builtins__thas_keytevaltmdt render_blocksR tv(R RRRR((Rtrender+s   !  (R t __module__tblockContinuationstnameRRRt__call__(((RRs   N( t__doc__t __rcs_id__t __version__tDT_UtilR R RtstrR(RRRR"R R R ((Rt?s