[Petal] Problems with on-error?

Bruno Postle bruno at mkdoc.com
Wed Nov 30 12:59:58 GMT 2005


On Tue 29-Nov-2005 at 03:55 -0000, larsks.20390725 at bloglines.com 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


More information about the Petal mailing list