[Zope] ZCatalog weirdness...

Braun Brelin bbrelin@openapp.biz
07 May 2003 14:42:53 +0100


Hey folks. 

I have a python script that looks like this: 

foo = context.portal_catalog.searchResults(id='foo')
for res in foo:
   print res.id
   print res.title

return printed

The output from this script is: 
portal_catalog
Indexes all content in the site

Anybody know why I'd be getting back the portal_catalog object itself
and not my document with the id of 'foo'?

Braun Brelin