Re: Problems with on-error?
Bruno Postle <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.petal |
|---|---|
| Message-ID | <[email protected]> |
On Tue 29-Nov-2005 at 03:55 -0000, [email protected] wrote: > <p petal:on-error="string:Cannot access object/method!!"> > $object/method > </p> > > Petal produced the following output: > > string:Cannot access object/method!! > > It looks as if Petal is treating the argument to on-error > as a simple string rather than as an expression, so the string: > modifier shows up in the text. Yes, looks like there are two bugs here: * The TAL spec says that 'on-error' should be treated as a 'content' statement, but Petal replaces the entire tag. * The expression isn't being evaluated and is dumped as a simple string. http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL%20Specification%201.4/#on-error -- Bruno