Hali! I use <dtml-in foo size=5 start=start_point>. For example if the start_point=5 and the length of the foo's tuple is 13, then everything is ok. I get 5 item. But if the length of the foo's tuple is 12, then I get all 7 item remains in the tuple. It works wrong if the length of the remaing part of the list is lesser than size+size/2. Anybody knows about it? Thanks. Lajos
This is a feature. The default value for orphan parameter for dtml-in is 3 but the documentation did not tell you about it, sorry :-) We updated the online documention of Zope meanwhile. Andreas ----- Original Message ----- From: "Kerekes Lajos" <lkerekes@xperts.hu> To: <zope@zope.org> Sent: Donnerstag, 9. August 2001 08:25 Subject: [Zope] Is this a feature or a bug
Hali!
I use <dtml-in foo size=5 start=start_point>. For example if the start_point=5 and the length of the foo's tuple is 13, then everything is ok. I get 5 item. But if the length of the foo's tuple is 12, then I get all 7 item remains in the tuple. It works wrong if the length of the remaing part of the list is lesser than size+size/2. Anybody knows about it?
Thanks.
Lajos
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Lajos, this is a feature! it's easy enough to get around: add orphan=0 to your dtml-in... cheers, G On 9 Aug 2001, at 14:25, Kerekes Lajos wrote: From: Kerekes Lajos <lkerekes@xperts.hu> To: zope@zope.org Subject: [Zope] Is this a feature or a bug Date sent: Thu, 09 Aug 2001 14:25:00 +0200
Hali!
I use <dtml-in foo size=5 start=start_point>. For example if the start_point=5 and the length of the foo's tuple is 13, then everything is ok. I get 5 item. But if the length of the foo's tuple is 12, then I get all 7 item remains in the tuple. It works wrong if the length of the remaing part of the list is lesser than size+size/2. Anybody knows about it?
Thanks.
Lajos
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
+-------------------------------------------+ Garry Steedman mailto:gs@styrax.com Styrax Associates http://www.styrax.com/ "The Good Man has no shape." +-------------------------------------------+
participants (3)
-
Andreas Jung -
Garry Steedman -
Kerekes Lajos