[ZPT] Equivalent for dtml-raise?

Brent Hendricks brentmh@ece.rice.edu
Tue, 10 Jul 2001 01:20:30 -0500


In building a custom loginForm for the LoginManager product, I've
discovered that the form must raise the 'LoginRequired' exception in
order to be displayed.  In DTML, it is done with <dtml-raise>.  I
tried <div tal:define="result python:raise('LoginRequired')"> but I
keep getting 

<!-- Page Template Diagnostics
Compilation failed
exceptions.NameError: CompilerError
-->

when I save the file.  

Does anyone have any ideas on how to do this?

Thanks,
Brent


-------------------------------------------------------------------------

"The programmer, like the poet, works only slightly removed from pure
 thought-stuff.  He builds his castles in the air, from air, creating
 by exertion of the imagination.  Few media of creation are so
 flexible, so easy to polish and rework, so readily capable of
 realizing grand conceptual structures."
                        -- Frederick Brooks, Jr., The Mythical Man Month