[Zope-Checkins] CVS: Zope2 - dtml-in.stx:1.4 dtml-tree.stx:1.7
evan@serenade.digicool.com
evan@serenade.digicool.com
Wed, 16 May 2001 15:07:36 -0400
Update of /cvs-repository/Zope2/lib/python/Products/OFSP/help
In directory serenade:/home/evan/Zope/trunk/lib/python/Products/OFSP/help
Modified Files:
dtml-in.stx dtml-tree.stx
Log Message:
Add "prefix" attribute to dtml-in and dtml-tree tags.
--- Updated File dtml-in.stx in package Zope2 --
--- dtml-in.stx 2001/04/18 00:24:44 1.3
+++ dtml-in.stx 2001/05/16 19:07:05 1.4
@@ -50,6 +50,11 @@
next -- Iterates once if there is a next batch. Sets batch variables
for the next sequence.
+ prefix=string -- Provide versions of the tag variables that start
+ with this prefix instead of "sequence", and that use underscores
+ (_) instead of hyphens (-). The prefix must start with a letter and
+ contain only alphanumeric characters and underscores (_).
+
Tag Variables
Current Item Variables
@@ -202,6 +207,19 @@
<dtml-in objectValues>
title: <dtml-var title><br>
</dtml-in>
+
+ Looping over two sets of objects, using prefixes::
+
+ <dtml-let rows="(1,2,3)" cols="(4,5,6)">
+ <dtml-in rows prefix="row">
+ <dtml-in cols prefix="col">
+ <dtml-var expr="row_item * col_item"><br>
+ <dtml-if col_end>
+ <dtml-var expr="col_total_item * row_mean_item">
+ </dtml-if>
+ </dtml-in>
+ </dtml-in>
+ </dtml-let>
Looping over a list of '(key, value)' tuples::
--- Updated File dtml-tree.stx in package Zope2 --
--- dtml-tree.stx 2001/04/18 00:24:44 1.6
+++ dtml-tree.stx 2001/05/16 19:07:05 1.7
@@ -70,6 +70,11 @@
expanding and contracting widget links. This attribute is for
advanced usage only.
+ prefix=string -- Provide versions of the tag variables that start
+ with this prefix instead of "tree", and that use underscores
+ (_) instead of hyphens (-). The prefix must start with a letter and
+ contain only alphanumeric characters and underscores (_).
+
Tag Variables
tree-item-expanded -- True if the current node is expanded.