[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>
|<br>
|<br>
Catalog(ZCatalog)<br>
<x-tab> </x-tab><x-tab> </x-tab>
|<br>
<x-tab> </x-tab><x-tab> </x-tab>
|<br>
updateCatalog(DTML Method)<br><br>
DTML Method source of updateCatalog:<br>
<dtml-call
"manage_catalogClear(REQUEST,RESPONSE,URL1)"><br>
<dtml-call
"manage_catalogFoundItems(REQUEST,RESPONSE,URL2,URL1,
['Image','File'])"><br><br>
I would like to invoke updateCatalog from the Search directory from a
form but when I use <br>
<dtml-call
"catalogue.updateCatalog(None,_,'')"> <br>
to do this, the next error is generate by Zope:<br>
<b> Error Type: NameError<br>
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> <dtml-call
"catalogue.manage_catalogClear(REQUEST,RESPONSE,URL1)"><br>
<dtml-call
"catalogue.manage_catalogFoundItems(REQUEST,RESPONSE,URL2,URL1,
['Image','File'])"><br>
<b>Zope say that 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>
or how to update a Zcatalog from his parent folder<br>
or 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>
<br>
</html>
--=====================_175018312==_.ALT--