[Zope] ZClass Catalog Update
KJZZ Webmaster
kjzz.webmaster at riomail.maricopa.edu
Sun Jan 25 21:58:18 EST 2004
>-- Original Message --
>From: Dieter Maurer <dieter at handshake.de>
>A better example would be:
>
> 1. obtain the object "obj" to be indexed by any adequate way
> (through a search, via its id (as shown above),
> via "restrictedTraverse", ...
>
> 2. call "catalog.catalog_object(obj)" to catalog (or re-catalog
> when it already is catalogued) the object
>
>--
>Dieter
In trying to get a bit closer with this, I am using the following script,
which can be found here:
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.
Is it true I should be sending, for instance, the following obj "<story
instance at 11A9D3E0>" to the catalog_object method? Or should I be doing
something else.
Appreciate the help.
John T.
More information about the Zope
mailing list