Re: [Zope] dtml-in 'one record per page' problem
Cesar A. K. Grossmann writes:
I'm using a report that must return one instance by page, but it's not working very well... If the query returns more than one result, Zope presents only two pages. I'm using Zope 2.1.6 in a Linux box. What does is mean: "presents only two pages"? Probably, you get wrong navigation elements. This would be due to a bug for "<dtml-in size=1>".
There is a patch for this at URL:http://www.dieter.handshake.de/pyprojects/zope/dt_in.pat In fact, the patch does more (allows for uniform navigation elements at both start and end of sequence batch). There was an announcement in this list around June 10, 2000. AFAIK, the patch is integrated into Zope 2.2.
Here are a excerpt of the dtml code used:
<dtml-in sqlQuery size=1 orphan=1 .... You should use "orphan=0". "orphan=1" allows for one "orphan" to be moved, i.e. you may get 2 records on a page.
Dieter
Dieter Maurer wrote:
What does is mean: "presents only two pages"?
Submitting the form gives the first page. Hitting the "next" link, gives another page, and no "next" link.
Probably, you get wrong navigation elements. This would be due to a bug for "<dtml-in size=1>".
There is a patch for this at
URL:http://www.dieter.handshake.de/pyprojects/zope/dt_in.pat
I have used the patche, and things looks good now. Thanks.
There was an announcement in this list around June 10, 2000.
I think I have missed it...
AFAIK, the patch is integrated into Zope 2.2.
I'm afraid to upgrade to Zope 2.2 right now.
You should use "orphan=0". "orphan=1" allows for one "orphan" to be moved, i.e. you may get 2 records on a page.
Again, thank you for this. The form is working now. []s -- César A. K. Grossmann ckant@usa.net http://members.xoom.com/ckant/ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html
participants (2)
-
Cesar A. K. Grossmann -
Dieter Maurer