[ZODB-Dev] Re: [Zope] ZODB.POSException.ReadConflictError

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 8 Jan 2003 13:29:27 +0000


On Wednesday 08 January 2003 1:09 pm, Christopher N. Deckard wrote:

> How's something like this:
> query =3D {}
> query['foo'] =3D 'bar'
> results =3D catalog.searchResults(query)[]
>
> # expensive stuff here
>
> return results
>
> I just added the "[]" to the end of the searchResults line.  Will
> that help?

I think you mean [:]

That will copy the lazy list of lazy search results brains, and I *think*=
 that=20
will create a proper list of proper brain objects. So yes, it will help.

--=20
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson