Re: [Zope] catching exceptions in zpt

2008-03-10 Thread Andreas Jung
--On 10. März 2008 13:55:27 -0700 David Bear <[EMAIL PROTECTED]> wrote: I'm trying to do something like this in a zpt Please don't invent new syntax (you're mixing Python and TALES expressions). First 'global' variable definitions are usually not needed and considered bad. Use nested sco

[Zope] catching exceptions in zpt

2008-03-10 Thread David Bear
I'm trying to do something like this in a zpt however, if my request did not have ?target=blah I get an attributeError because of course the request has not parameter called target. I assumed that the pipe 'or nothing' would handle an equivalent except AttributeError block but it doesnt. how