[ZPT] [Weakness] "tal:repeat" not yet right

Godefroid Chapelle gotcha@swing.be
Mon, 22 Oct 2001 11:29:27 +0200


At 04:20 27/09/2001, Evan Simpson wrote:

>Perhaps we can emulate Python, here.  Guido & gang solved this problem by 
>introducing their warning and "import from __future__" statements. In one 
>version, new behavior is available if you "import" it.  In the next 
>version, you get warnings if you have code that would break. Finally a 
>version makes the new behavior the default, and the "import from 
>__future__" can be removed, although it is safe to leave it in.
>
>
>One way to proceed is to define some kind of behavior marker (a processing 
>instuction, perhaps?) that changes the order of operations. Then, release 
>a version that issues a warning for any template that uses tal:condition 
>but doesn't have the marker.  Finally, change the order of operations, 
>turn off the warnings, and auto-drop the marker when a page is edited.

>Thoughts?

What are you meaning by a processing instruction ?

I feel I would simply ;-) add a tal:fix_repeat_order="true" to the 
concerned tag.
This would issue warning in next release and auto-dropped in the next one.



Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 30
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 457490
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849