[Zope-CMF] Calling portal_catalog.indexObject from Zope ?

Tres Seaver tseaver@zope.com
Mon, 29 Oct 2001 07:18:07 -0500


Gitte Wange wrote:

> I have created a method where I need to call the indexObject method of
> portal_catalog, because the object isn't being inxeded automatically.

> 
> But calling the method from a dtml method raises an unauthorized error
> :-((
> 
> Anyone who knows how to "fix" this (some sort of work around) ...


You should be able to ask the object to index itself:

    context.reindexObject()

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com