Oleg Broytmann wrote:
Hi!
Hmm, I have a copy of documentation locally (http://sun.med.ru/doc/Zope/), but there is no such section. In my version it is section 5.5. Seems you have updated the socs. Anyway, I cannot found the variable I need. There are previous-sequence-size and next-sequence-size, but there is no current-sequence-size :( sequence-step-size always give me 10...
On Mon, 11 Oct 1999, Michel Pelletier wrote:
http://www.zope.org/Documentation/Guides/DTML/DTML-HTML/DTML.6.5.html
Thanks, but this helped a little.
-Michel
Oleg said:
Hello!
I have a loop: <!--#in images mapping start=qs size=10 orphan=1-->
How can I find the size of current batch? If, for example, there are 4 images, I want to get 4. If there are 12, and it is 2nd batch, I want to get 2.
Does'nt _.len or batch_size work ? if not then DT_In.py (in Zope2/lib/python/DocumentTemplates) reveals the following in its doc string - among other things , that should probably be in "real" docs. 'sequence-step-start-index' -- The index, starting from 0, of the start of the current batch. 'sequence-step-end-index' -- The index, starting from 0, of the end of the current batch. the size would probably be their difference ;) ----------------- Hannu