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

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


Gitte Wange wrote:

> man, 2001-10-29 kl. 13:18 skrev Tres Seaver:
> 
>>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()
> 
> Unfortunately I don't know if this is possible - the object I want to
> index is a CMF Site :-(


I can't envision why you would do that, given that the CMFSite
object isn't "content" at all (the only reason it has metadata
is to allow it to provide default values by acquisition).

Could you please back up a step and explain what made you want
to index the site object?

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