orphan handling/sequence-size bug?
hi! What is your Zope Version? http://classic.zope.org:8080/Collector/939/view http://classic.zope.org/pipermail/zope-dev/2000-August/006360.html 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
2.3 FURUYA Satoshi schrieb:
hi!
What is your Zope Version?
http://classic.zope.org:8080/Collector/939/view
http://classic.zope.org/pipermail/zope-dev/2000-August/006360.html
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
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
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
hi I tried and succeesed using 2.1.6 I tried 2.3 too. but I can not successed. If I can I will report. I found this ML. Perhaps this mail is for 2.3?? http://groups.yahoo.com/group/zope/messagesearch?query=dtml-in+batching thanks Satoshi Furuya satoshi@hanakuruma.com English is not easy for me. Olaf Zanger<3A824839.CEEC5F3C@soli-con.com>wrote
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
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)
participants (2)
-
FURUYA Satoshi -
Olaf Zanger