[Zope] There is an ERROR in DTML-IN

Ulrich Wisser u.wisser@luna-park.de
Thu, 18 Nov 1999 11:17:52 +0100


Hello Michel,

> > some of you will remeber me asking about ZSQL and batch
> > processing. I wasn't able to get a "next page" link.
> > I verified that error. "previous-sequence" is only true
> > in "sequence-start" while "next-sequence" is only true
> > in "sequence-end".
> 
> Are you using Python 1.5.2?  I cannot reproduce this at all.

Please find my code below. 
I think my SuSE got python 1.5.1 installed. I'll try ti upgrade
and see if it changes.

So long

Ulli


  <TABLE BORDER=0 WIDTH="100%">
    <dtml-in sqlListCategories size=5 start=qs>
      <dtml-if sequence-start>
        <TR><TD COLSPAN=2 CLASS="contenttitle">Kategorien
          <dtml-var sequence-step-start-number> - <dtml-var
sequence-step-end-number> (total: <dtml-var count-name>)
        </TD></TR>
        <dtml-if previous-sequence>
          <TR>
            <TD>
              <A HREF="<dtml-var document_id><dtml-var
sequence-query>qs=<dtml-var previous-sequence-start-number>">Vorherige
Seite</A>
            </TD>
          <TR>
        </dtml-if>
<dtml-comment>
THIS CODE WILL NOT MAKE ANY OUTPUT (even when dtml-comment removed)
        <dtml-if next-sequence>
          <TR>
            <TD>
              <A HREF="<dtml-var document_id><dtml-var
sequence-query>qs=<dtml-var next-sequence-start-number>">N&auml;chste
Seite</A>
            </TD>
          </TR>
        </dtml-if>
</dtml-comment>
      </dtml-if>  
      <TR>
        <FORM METHOD=POST ACTION="dtCategory">
          <INPUT TYPE=HIDDEN NAME="name" VALUE="<dtml-var name>">
          <TD><dtml-var name></TD>
          <TD><INPUT TYPE=SUBMIT NAME="DELCAT"
VALUE="L&ouml;schen"></TD>
        </FORM>
      </TR>
      <dtml-if sequence-end>
<dtml-comment>
THIS CODE WILL NOT MAKE ANY OUTPUT (even when dtml-comment removed)
        <dtml-if previous-sequence>
          <TR>
            <TD>
              <A HREF="<dtml-var document_id><dtml-var
sequence-query>qs=<dtml-var previous-sequence-start-number>">Vorherige
Seite</A>
            </TD>
          <TR>
        </dtml-if>
</dtml-comment>
        <dtml-if next-sequence>
          <TR>
            <TD>
              <A HREF="<dtml-var document_id><dtml-var
sequence-query>qs=<dtml-var next-sequence-start-number>">N&auml;chste
Seite</A>
            </TD>
          </TR>
        </dtml-if>
      </dtml-if>
    <dtml-else>
      <TR><TD CLASS="contenttitle">Kategorien</TD></TR>
      <TR><TD><H2>Keine Kategorien vorhanden</H2></TD></TR>
    </dtml-in>
  </TABLE>

-- 
----------------- Die Website Effizienzer ------------------
luna-park                Bravo Sanchez, Vollmert, Wisser GbR
Ulrich Wisser                   mailto:u.wisser@luna-park.de
Alter Schlachthof, Immenburgstr. 20      Tel +49-228-9654055
D-53121 Bonn                             Fax +49-228-9654057
------------------http://www.luna-park.de ------------------