[Zope] There is an ERROR in DTML-IN
Ulrich Wisser
u.wisser@luna-park.de
Fri, 19 Nov 1999 12:23:45 +0100
Hi 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.
>
> It will. You *must* have python 1.5.2 to run zope 2.0.
I verified that and there have been two version of python on my
machine. Zope used python 1.5.2. I deleted both version and
installed python 1.5.2 from scratch (downloaded from python.org).
You already guessed it? Yes, the error is still there.
I attach my code again. There is no next-sequence at the
top of my table and no previous-sequence at the bottom.
I try to access next-sequence while in sequnce-start. That
is not working.
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-if next-sequence>
<TR>
<TD>
<A HREF="<dtml-var document_id><dtml-var
sequence-query>qs=<dtml-var next-sequence-start-number>">Nächste
Seite</A>
</TD>
</TR>
</dtml-if>
</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öschen"></TD>
</FORM>
</TR>
<dtml-if sequence-end>
<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-if next-sequence>
<TR>
<TD>
<A HREF="<dtml-var document_id><dtml-var
sequence-query>qs=<dtml-var next-sequence-start-number>">Nä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 ------------------