[Zope] - Access to sequence-item?
Michael Scharf
Michael.Scharf@gmx.de
Thu, 10 Dec 1998 19:14:08 +0100
I think it is a bad decision to use the '-' in special names.
Here is my problem:
<!--#in outer_list-->
<!--#in inner_list-->
How to access the sequence-item?
this does not work:
<!--#var expr="DoSomethingWith(sequence-item)"-->
How to acces to the outer_list.sequence-item?
This does not work:
<!--#var expr="DoSomethingWith(outer_list.sequence-item)"-->
neither does this work:
<!--#with "_.namespace(inner_item=sequence-item)"/>
<!--#var expr="DoSomethingWith(inner_item)"-->
<!--#/with-->
This indicates, what is going on:
<!--#with "_.namespace(sequence=42,item=1)"/-->
inserts 41!!!
<!--#var expr="sequence-item"-->
<!--#/with-->
<!--#/in-->
<!--#/in-->
I think it would be nice, if the <!--#in --> would support
an 'as' attribute:
<!--#in outer_list as="outer_item"-->
<!--#in inner_list as="inner_item"-->
<!--#var expr="DoSomethingWith(inner_item)"-->
<!--#var expr="DoSomethingWith(outer_item)"-->
<!--#/in-->
<!--#/in-->
Or am I missing something???
Michael
--
''''\ Michael Scharf
` c-@@ TakeFive Software
` > http://www.TakeFive.com
\_ V mailto:Michael_Scharf@TakeFive.co.at