[Zope-dev] Strange loop with ZCatalog

Casey Duncan casey at zope.com
Fri Feb 13 10:56:32 EST 2004


On Fri, 13 Feb 2004 16:14:05 +0100
Pascal Samuzeau <samuzeau at oreka.com> wrote:

> Hi,                                                                   
>                                                                       
>                                                                       
> > I already replied to this, but I never heard back from you.         
>                                                                       
> I haven't seen your answer before, I'll search for it.  

That's ok. I think there are inconsistencies in the loop code. In my
message I explained what didn't make sense to me.
                                                           
> > What does the following return for a value:                         
> >                                                                     
> > len(list(context.TheCatalog.searchResults(Type='TypeTest')))        
>                                                                       
> Just for now 62418.                                                   
>                                                                       
> len (context.TheCatalog.searchResults(Type='TypeTest')) returns 62418 
> too.

Good, so that means that len() of the result set isn't lying.

-Casey



More information about the Zope-Dev mailing list