Re: [Zope] Weird ZCatalog issue...

2006-10-30 Thread Chris Withers

Chris Withers wrote:

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?


Hmm, I was hoping for more response...

Oh well, filed in the collector:

http://www.zope.org/Collectors/Zope/2226

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Weird ZCatalog issue...

2006-10-27 Thread Chris Withers

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
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )