[Zope-CMF] Newbie question CMF Document

Chris Withers chrisw@nipltd.com
Thu, 09 Aug 2001 14:02:52 +0100


Erik Enge wrote:
> 
> for brain in aCatalog(<searchquery>):
>     object = aCatalog.getobject(brain.data_record_id_)

Bleugh! This is outdated and likely to break...

for brain in aCatalog(<searchquery>):
   object = brain.getObject()

...is the way to go.

cheers,

Chris