[Zope-dev] Re: Unexpected Behaviour iterating over catalog search...

Chris Withers lists at simplistix.co.uk
Tue Mar 9 05:21:31 EST 2004


Jean Jordaan wrote:

> for brain in Catalog(some_index=some_value):
>     # delete the object, and then
>     brain_to_delete = Catalog(unique_index=brain.unique_prop)
>     Catalog.uncatalog_object(brain_to_delete.getPath())
> 
> .. can't really think why that would work if Chris's original
> doesn't, though.

...it won't, this is analagous to the code I have that fails.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope-Dev mailing list