[Zope] Problem with ZSQL query results...sort of...

Schmidt, Allen J. aschmidt@nv.cc.va.us
Wed, 28 Feb 2001 14:00:01 -0500


How about like this. This is how I changed it right after I had originally
created it but did not like the look of it. This does not work either...




   <dtml-if sequence-end>
      <dtml-if next-sequence>
         <a href="<dtml-var URL><dtml-var
sequence-query>query_start=<dtml-var next-sequence-start-number>">
           (Next <dtml-var next-sequence-size> results)
         </a>
      </dtml-if next-sequence>
   </dtml-if sequence-end>


Allen

-----Original Message-----
From: Tino Wildenhain [mailto:tino@wildenhain.de]
Sent: Wednesday, February 28, 2001 1:14 PM
To: Schmidt, Allen J.; 'zope@zope.org'
Subject: Re: [Zope] Problem with ZSQL query results...sort of...


Hi Allen,

--On Mittwoch, 28. Februar 2001 12:19 -0500 "Schmidt, Allen J." 
<aschmidt@nv.cc.va.us> wrote:

> I have a system that has been working fine. Changed some things on a DTML
> method that calls the query but have since changed it back because of the
> errors.
>
>
> This part at the bottom of the search method had been working fine. Now I
> get errors from next-sequence-start-number. I am getting a KeyError when
> accessing a query when more than 50 which is the default size.
>
> IT WAS FINE!!! It is the generic code from the generated search method
> created.
>
>
>    <dtml-if sequence-end>
>
>       <dtml-if next-sequence>
>
>          <a href="<dtml-var URL><dtml-var sequence-query
>             >query_start=<dtml-var
>             next-sequence-start-number>">
^^^^^^^^^^^^^^ was this new line intended? If its in your app too, I would
expect the error there.

Regards
Tino


>          (Next <dtml-var next-sequence-size> results)
>          </a>
>
>       </dtml-if next-sequence>
>    </dtml-if sequence-end>
>
>
> The production application is down while I look into this.
> ANY suggestion is appreciated!
>
> Allen
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )