[Zope] DTML batch processing variables

Joachim Schmitz perry@ac-copy.net
Fri, 25 Jun 1999 08:27:29 +0200 (CEST)


Hi,

I tried the example from the DTML userguide with my query and get wrong
values for: 
next-sequence-size and previous-sequence-size,
here is my dtml-example:

<!--#if slow_search -->
<!--#in slow_search previous size=20 start=qs-->
  <!--#comment-->
  <!--#var previous-sequence-size --><br>
  <!--#var previous-sequence-start-index --><br>
  <!--#var previous-sequence-end-index --><br>
  <!--#/comment -->
    <a href="<!--#var document_id--><!--#var sequence-query
    -->qs=<!--#var previous-sequence-start-number-->">
    (vorherige <!--#var previous-sequence-size--> Adressen )</a><br>
    <!--#/in-->
<!--#in slow_search size=20 start=qs-->
  <!--#if sequence-start -->
    E-Mail.DE hat insgesamt
    <!--#var sequence-length --> Adresse
    <!--#if expr="_['sequence-length'] > 1"-->n 
    <!--#/if -->gefunden.<BR>
  <!--#/if -->
  <H4><!--#var expr="_['sequence-index'] + 1" -->.
  <!--#var vorname --> <!--#var name -->
  </H4>
  <!--#var position -->,<!--#var organisation -->
  <!--#var strasse  -->; <!--#var plz --> <!--#var ort  --><BR>
  <!--#if tel -->Tel: <!--#var tel --><!--#/if --><BR>
  <!--#if fax -->Fax: <!--#var fax --><!--#/if --><BR>
  <!--#if emailg -->
     <a HREF="mailto:<!--#var emailg -->"><!--#var emailg --></a>
geschäftlich<br>
  <!--#/if -->
  <!--#if emailp -->
     <a HREF="mailto:<!--#var emailp -->"><!--#var emailp --></a>
privat<br>
  <!--#/if -->
  <P><BR>
<!--#/in -->
<!--#in slow_search next size=20 start=qs-->
  <!--#comment -->
  <!--#var next-sequence-size --><br>
  <!--#var next-sequence-start-index --><br>
  <!--#var next-sequence-end-index --><br>
  <!--#/comment -->
    <a href="<!--#var document_id--><!--#var sequence-query
    -->qs=<!--#var next-sequence-start-number-->">
    (die nächsten <!--#var next-sequence-size--> Adressen )</a>
    <!--#/in-->
<!--#else -->
Es wurden leider keine Einträge gefunden
<!--#/if -->
 
When for example 111 records are found:

next-sequence-size is alway "1", and previous-sequence-size is
"-90","-70","-50","-30","-10" everything else works as described.



Gruß

Joachim Schmitz