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

Gitte Wange gitte@mmmanager.org
29 Oct 2001 13:20:11 +0100


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()
> 
> Tres.
> -- 
> ===============================================================
> Tres Seaver                                tseaver@zope.com
> Zope Corporation      "Zope Dealers"       http://www.zope.com

Unfortunately I don't know if this is possible - the object I want to
index is a CMF Site :-(


-- 
Gitte Wange Jensen

Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark

Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org

Quote of the day:
The 'Manager' role in Zope is like a hot knife through butter.

    - Rob Page, Phone conversation, Tuesday, May 29, 2001
-- 
Gitte Wange Jensen

Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark

Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org

Quote of the day:
Just because a program takes text commands makes it complex? I love
GUI's. I love using the web. I love WYSIWYG word processors. But I also
love CLIs. It feels more natural to me, as if I'm talking with the
computer (granted, the language isn't english, it's bash, and the
vocabulary happens to be whatever's is my PATH)--I tell it what to do
and
it does it for me (unlike GUI's where I have to do everything my own
damn
self).

    - fassler, in response to MS France FUD