4 Nov 13:43
TAL link for PeTaL out of date
http://www.zope.org/Wikis/DevSite/Projects/ZPT/FrontPage
lists Hiver's 2.14 version instead of Bruno's recent 2.17 version
lists Hiver's 2.14 version instead of Bruno's recent 2.17 version
On Fri 04-Nov-2005 at 04:43 -0800, Terrence Brannon wrote: > http://www.zope.org/Wikis/DevSite/Projects/ZPT/FrontPage > > lists Hiver's 2.14 version instead of Bruno's recent 2.17 version Yes the way to link to the current version of a perl module is like so: http://search.cpan.org/dist/Petal/ -- -- Bruno
Terrence Brannon wrote: > http://www.zope.org/Wikis/DevSite/Projects/ZPT/FrontPage > > lists Hiver's 2.14 version instead of Bruno's recent 2.17 version Thanks, I've fixed this and another stale link on that page. Cheers, Evan @ 4-am
On Wed, 2005-09-11 at 13:11 -0500, Josh Narins wrote:
> Dear Petal List,
>
> I've got this in my template:
>
> <option petal:repeat="o options"
> petal:attributes="value string:${o/id}; selected decode: o/selected 1 'selected'">
I use "selected decode:foo 1 'selected' nothing" to stop the attribute
from appearing at all when it's not selected (as needed for HTML).
Howdy, I've run into what looks like a problems with the on-error directive in Petal 2.17. Given the following input (straight from the Petal documentation): <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. $ perl -MPetal -e 'print $Petal::VERSION, "\n"' 2.17 -- Lars
On Tue 29-Nov-2005 at 03:55 -0000, larsks.20390725@... 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
RSS Feed3 | |
|---|---|
3 | |
1 | |
2 | |
2 | |
1 | |
1 | |
5 | |
1 | |
2 | |
8 | |
11 | |
3 | |
10 | |
19 | |
10 | |
8 | |
8 | |
5 | |
8 | |
12 | |
18 | |
25 | |
8 | |
9 | |
11 | |
12 | |
22 | |
30 | |
66 | |
17 | |
15 | |
3 | |
9 | |
36 | |
10 | |
12 | |
19 | |
21 | |
9 | |
18 |