[triangle-zpug] Re: Batching results from AdvancedQuery

Geoff Davis geoff at geoffdavis.net
Wed Aug 9 15:06:30 CEST 2006


(You don't need the 1 == 1; [r for r in results] works just fine.)

On Wed, 2006-08-09 at 09:04 -0400, Mike Revoir wrote:
> For completeness, I got around this by creating a new list from the results.
> 
> results = [r for r in results if 1 == 1]
> 
> Mike
> 
> On 8/9/06, Mike Revoir <mrevoir at gmail.com> wrote:
> > Hello all,
> >
> > I'm using AdvancedQuery to return catalog results so that I can sort on two
> > indexes. When batching the results, I'm getting a StopIteration exception
> > when navigating to the last page. Has anyone else experienced this? Any
> > ideas on how to troubleshoot?
> >
> > Thanks,
> >
> > Mike
> >
> 
> _______________________________________________
> triangle-zpug mailing list
> triangle-zpug at starship.python.net
> http://starship.python.net/mailman/listinfo/triangle-zpug
> 




More information about the triangle-zpug mailing list