[Zope] #in & reverse sort + size

Achim Gorski Achim Gorski <gorski@sgi.com>
Wed, 15 Sep 1999 17:40:58 +0200 (CEST)


Thanks for the hint, but it doesn't work for me. If I add start=0, nothing
happens. Zope always shows 7 entries instead of 5.

- Achim

On Sep 15,  9:58, Evan Simpson wrote:
> Subject: Re: [Zope] #in & reverse sort + size
> I ran into a similar problem, and "solved" it by putting in a dummy start
> clause.  I think 'size' is not meant to be used independently of 'start'.
> Try this:
>
> <!--#in "objectValues(['Folder', 'DTML Document'])"  sort=id reverse size=5
> start=0-->
>
> 'start' is supposed to be a variable name, not a number, but this works
> anyway <shrug>.
>
> ----- Original Message -----
> From: Achim Gorski <achimg@obelix.cologne.sgi.com>
> > I've a folder containing 7 DTML Documents. The construct below should
> > print 5 title/id, but Zope-2.0.0 displays all seven?! If I include one
> > more DTML Document, only 5 title/id are shown!
> > Why is the correct number shown with 8 documents but not with 7
> documents??
> >
> >
> > <!--#in "objectValues(['Folder', 'DTML Document'])"  sort=id reverse
> size=5 -->
>
>-- End of excerpt from Evan Simpson



-- 
  Silicon Graphics GmbH    |  Email: Achim Gorski <gorski@sgi.com>
 Frankfurter Str. 720-726  |  Phone: +49-2203-9312-24
  D-51145 Koeln, Germany   |  VM   : +330-8891
   Mail-Stop:  IDE-3160    |  Fax  : +49-2203-9312-20