[Zope] Weird ZCatalog issue...
Chris Withers
chris at simplistix.co.uk
Fri Oct 27 12:22:24 EDT 2006
Chris Withers wrote:
> This ain't right, anyone else seen this or anything like it?
>
> zopectl debug:
> >>> len(app.some_catalog.unrestrictedSearchResults())
> 2937144
>
> >>> i = 0
> >>> for b in app.some_catalog.unrestrictedSearchResults():
> .... i+=1
> ....
> >>> i
> 821165
Also:
>>> len(tuple(app.some_catalog.unrestrictedSearchResults())
821165
Why is the lazy list of brains getting its length wrong?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list