[ZPT] Image_batches example broken, with patch
Nicola Larosa
nico@tekNico.net
Sun, 04 Nov 2001 17:26:42 +0100
This is a multi-part message in MIME format.
--------------060107010003080904070300
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
The image_batches example in zpt_examples.zexp is broken, due to recent
syntax changes.
Here is a patch that lets it run again.
--
"Mozilla will be around long after nobody can remember
just quite what Internet Explorer actually used to be."
AirLace on Slashdot
Nicola Larosa - nico@tekNico.net
--------------060107010003080904070300
Content-Type: text/html;
name="image_batches.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="image_batches.patch"
--- image_batches Sun Nov 4 17:19:05 2001
+++ image_batches.NEW Sun Nov 4 17:18:02 2001
@@ -3,9 +3,9 @@
<title tal:content="template/title">The title</title>
</head>
<body>
- <div tal:define="b_start string:0;b_start (if exists) request/b_start;
+ <div tal:define="zero string:0; b_start request/b_start | zero;
images python:container.data.objectValues('Image');
- Batch (nocall) modules/ZTUtils/Batch;
+ Batch nocall:modules/ZTUtils/Batch;
global batch python:Batch(images, 3, int(b_start), orphan=1)"
tal:replace="nothing" />
<a href="" tal:define="p batch/previous"
--------------060107010003080904070300--