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.
Chris Withers wrote:
How are you passing the object into this script?
What leads you to believe the catalog has not been updated?
If, in one browser window, I make a change in say, the description field, of the item I'm working on, then click on the "update" tab (which calls the script above). Then, in another browser window, I look at the contents of the catalog, and click on link to view the metadata for this item (the link which ends with something like '?rid=-387120426'), the description field does not reflect this change. Could it be that only the Index gets updated and not the Metadata? Could it be that only a certain part of the object like the PrincipiaSearchSource updates?
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 :-)
Well, that was simple : ) Thanks! JT