[Zope] Using DTML to update ZCatalog

Joachim Werner joe@iuveno-net.de
Mon, 18 Jun 2001 14:23:23 +0200


> I tried <dtml-call catalogReindex('MyZCatalog')> , but that does not
> work.

This does not work. DC wrote methods for the management interface only. :-(

The only thing you can do is:

<dtml-call "MyZCatalog.manage_catalogReindex(REQUEST, RESPONSE, URL1)">

But then you will be redirected to the management screen of the catalog, so
you will have to add another

<dtml-call"RESPONSE.redirect('NewURL')">

to override that.

So the complete code would be:

<dtml-call "MyZCatalog.manage_catalogReindex(REQUEST, RESPONSE, URL1)">
<dtml-call"RESPONSE.redirect('NewURL')">

(Not really what people would call comprehensible DTML code ...)

Cheers

Joachim