[Zope] ZClass Catalog Update

Chris Withers chris at simplistix.co.uk
Mon Jan 26 07:36:48 EST 2004


KJZZ Webmaster wrote:

> http://www.zopelabs.com/cookbook/1032051394
> 
> catalog = context.Catalog
> if obj is None:
>   obj=context
> # print obj
> # print obj.title_or_id(), ' prints the title or id of the object'
> catalog.catalog_object(obj)
> # return printed
> 
> Yet, after the script has run, I do not get an error, but the individual
> entry does not update in the catalog.

How are you passing the object into this script?

What leads you to believe the catalog has not been updated?

> Is it true I should be sending, for instance, the following obj "<story
> instance at 11A9D3E0>" to the catalog_object method? 

If you want to catalog your story object, then yes :-)

cheers,

Chris




More information about the Zope mailing list