[Zope] Invoking several DTML Methods

William GARCIA wgarcia@esrf.fr
Wed, 17 Apr 2002 10:53:47 +0200


--=====================_175018312==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Newbie : question
Hi, I have a problem with invoking a DTML method.

Search(Directory)
           |
           |
         Catalog(ZCatalog)
                           |
                   |
                      updateCatalog(DTML Method)

DTML Method source of updateCatalog:
    <dtml-call "manage_catalogClear(REQUEST,RESPONSE,URL1)">
    <dtml-call "manage_catalogFoundItems(REQUEST,RESPONSE,URL2,URL1, 
['Image','File'])">

I would like to invoke updateCatalog from the Search directory from a form 
but when I use
   <dtml-call "catalogue.updateCatalog(None,_,'')">
to do this, the next error is generate by Zope:
  Error Type: NameError
  Error Value: global name 'manage_catalogClear' is not defined

If I use the next code in the Search directory always in the form,
    <dtml-call "catalogue.manage_catalogClear(REQUEST,RESPONSE,URL1)">
    <dtml-call 
"catalogue.manage_catalogFoundItems(REQUEST,RESPONSE,URL2,URL1, 
['Image','File'])">
Zope say that  the global name 'manage_catalogView' is not defined

If everyone can tell me how to define 'manage_catalogClear'  and 
manage_catalogFoundItems in Search directory
                             or   how to update a Zcatalog from his parent 
folder
                             or   how to invoke method (which invoke 
herself methods)from a parent directory,
I would be very pleasant.

Greetings, Akh







--=====================_175018312==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Newbie : question<br>
Hi, I have a problem with invoking a DTML method. <br><br>
Search(Directory)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Catalog(ZCatalog)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp;
|<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp;
|<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
updateCatalog(DTML Method)<br><br>
DTML Method source of updateCatalog:<br>
&nbsp;&nbsp; &lt;dtml-call
&quot;manage_catalogClear(REQUEST,RESPONSE,URL1)&quot;&gt;<br>
&nbsp;&nbsp; &lt;dtml-call
&quot;manage_catalogFoundItems(REQUEST,RESPONSE,URL2,URL1,
['Image','File'])&quot;&gt;<br><br>
I would like to invoke updateCatalog from the Search directory from a
form but when I use <br>
&nbsp; &lt;dtml-call
&quot;catalogue.updateCatalog(None,_,'')&quot;&gt;&nbsp;&nbsp; <br>
to do this, the next error is generate by Zope:<br>
<b>&nbsp;Error Type: NameError<br>
&nbsp;Error Value: global name 'manage_catalogClear' is not
defined<br><br>
If I use the next code in the Search directory always in the form,<br>
</b>&nbsp;&nbsp; &lt;dtml-call
&quot;catalogue.manage_catalogClear(REQUEST,RESPONSE,URL1)&quot;&gt;<br>
&nbsp;&nbsp; &lt;dtml-call
&quot;catalogue.manage_catalogFoundItems(REQUEST,RESPONSE,URL2,URL1,
['Image','File'])&quot;&gt;<br>
<b>Zope say that&nbsp; the global name 'manage_catalogView' is not
defined<br><br>
</b>If everyone can tell me how to define <b>'manage_catalogClear' </b>
and manage_catalogFoundItems in Search directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
or&nbsp;&nbsp; how to update a Zcatalog from his parent folder<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
or&nbsp;&nbsp; how to invoke method (which invoke herself methods)from a
parent directory,<br>
I would be very pleasant.<br><br>
Greetings, Akh<br><br>
<br><br>
<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
</html>

--=====================_175018312==_.ALT--