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

Tony McDonald tony.mcdonald@ncl.ac.uk
Mon, 22 Oct 2001 12:02:04 +0100


On 22/10/01 10:29 am, "Godefroid Chapelle" <gotcha@swing.be> wrote:

> At 04:20 27/09/2001, Evan Simpson wrote:
> 
>> 
>> 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 ?
> 

Presumably an XML type processing instruction, eg

<?xml version="1.0"?> is a standard processing instruction, so perhaps
something like

<?xml talpi:fix_repeat_order="true"?>

(talpi for tal processing-instruction) might work?

This would be at the top of the PT. Presumably non-standard PT behaviour can
be triggered in this way too.

> I feel I would simply ;-) add a tal:fix_repeat_order="true" to the
> concerned tag.

Yeah, that's another way of doing it. It also has the benefit of being
localised to a single tag (and it's hierarchy).

> This would issue warning in next release and auto-dropped in the next one.
> 
> 
> 
> Godefroid Chapelle

Tone
-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope