[Zope] orphan handling/sequence-size bug?

Olaf Zanger olaf.zanger@soli-con.com
Thu, 08 Feb 2001 08:18:17 +0100


Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------30B55DC3B9143862A3390877
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hi,

thanks for helping me, 

unfortunately the code changed to 2.3. i tried to change it back to the suggestion,
but didn't help
(i am not that firm with python)


FURUYA Satoshi schrieb:
> 
> hi!
> 
> What is your Zope Version?
2.3

> 
> http://classic.zope.org:8080/Collector/939/view
this bug is still in 2.3

> 
> http://classic.zope.org/pipermail/zope-dev/2000-August/006360.html
in zope 2.3 the above linked area in DT_In.py looks unfortunately different:
            elif next:
                try:
                    # The following line is a sneaky way to test whether
                    # there are more items, without actually
                    # computing a length:
                    sequence[end]
                    pstart,pend,psize=opt(end+1-overlap,0,
                                          sz,orphan,sequence)
-->             except IndexError:
                    if self.elses: result=render(self.elses, md)
                    else: result=''
                else:
-->                 kw['next-sequence']=1
                    kw['next-sequence-start-index']=pstart-1
                    kw['next-sequence-end-index']=pend-1
                    kw['next-sequence-size']=pend+1-pstart
                    result=render(section,md)

> 
> etc
> 
> Olaf Zanger<3A7860C4.F2CAD5C4@soli-con.com>wrote:
> >we take the sequence-size as seq_size for a dtml-in statement from a formular with
> >'get'
> >(as shown in DTML.html under batch processing)
> >
> >(<dtml-in rep.sql size=seq_size start=query_start>)
> >
> >if the seq_size is 2 and larger there is no trouble, if it is 1
> >(&seq_size=1&query_start=2)
> >'next-sequence' does not exist in the second batch.
> >
> >therfore it doesn't show a next-batch-link in the second batch.
> >
> >seems to be a problem with the orphan handling

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:info@soli-con.com
mailto:olaf.zanger@soli-con.com
http://www.soli-con.com
--------------30B55DC3B9143862A3390877
Content-Type: text/x-vcard; charset=us-ascii;
 name="olaf.zanger.vcf"
Content-Description: Visitenkarte für Olaf Zanger
Content-Disposition: attachment;
 filename="olaf.zanger.vcf"
Content-Transfer-Encoding: 7bit

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:olaf.zanger@soli-con.com
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard

--------------30B55DC3B9143862A3390877--