[ZPT] CVS: Releases/Zope/lib/python/Products/PageTemplates/tests/input - CheckBatchIteration.html:1.1.2.1 Loop2.html:1.1.2.1 CheckPathAlt.html:1.2.24.1

Evan Simpson evan@zope.com
Thu, 13 Dec 2001 15:25:34 -0500


Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates/tests/input
In directory cvs.zope.org:/tmp/cvs-serv20474/Products/PageTemplates/tests/input

Modified Files:
      Tag: Zope-2_5-branch
	CheckPathAlt.html 
Added Files:
      Tag: Zope-2_5-branch
	CheckBatchIteration.html Loop2.html 
Log Message:
Merge changes from trunk


=== Added File Releases/Zope/lib/python/Products/PageTemplates/tests/input/CheckBatchIteration.html ===
<html>
  <body tal:define="ztu modules/ZTUtils;b python:ztu.Batch(range(10), 5)">
    <p tal:repeat="n b">
      Batch 1: item=<span tal:replace="n">n</span>
    </p>
    <p tal:repeat="n b/next">
      Batch 2: item=<span tal:replace="n">n</span>
    </p>
  </body>
</html>


=== Added File Releases/Zope/lib/python/Products/PageTemplates/tests/input/Loop2.html ===
<html>
<body tal:define="objects python:[
  {'name': 'fred', 'legs': 2},
  {'name': 'wilma', 'legs': 2},
  {'name': 'dino', 'legs': 4},
]">
<tal:block repeat="ob objects">
  <h4 tal:condition="repeat/ob/first/legs">Legs:
    <span tal:replace="ob/legs">1</span></h4>
  <p tal:content="ob/name">Name</p>
  <hr tal:condition="repeat/ob/last/legs" />
</tal:block>
</body>
</html>


=== Releases/Zope/lib/python/Products/PageTemplates/tests/input/CheckPathAlt.html 1.2 => 1.2.24.1 ===
    <p tal:content="python:nil or x">3</p>
    <p tal:content="y/z | x">4</p>
+   <p tal:content="y/z | string:X">4</p>
+   <p tal:content="y/z | python:'|AXE|'[2]">4</p>
    <p tal:content="y/z | x | nil">5</p>
 
    <p tal:attributes="name nil">Z</p>
    <p tal:attributes="name y/z | nil">Z</p>
+   <p tal:attributes="name y/z | string:">Z</p>
+   <p tal:attributes="name y/z | python:'||'[:0]">Z</p>
    <p tal:attributes="name y/z | nothing">Z</p>
 
    <p tal:on-error="python:str(error.value)" tal:content="a/b | c/d">Z</p>