Re: Updating a ZCatalog within a DTML Method
Message: 9 Date: Thu, 07 Jun 2001 11:02:38 +0100 From: Nico Grubert <nico@beehive.de> To: zope@zope.org Subject: [Zope] Updating a ZCatalog within a DTML Method
Hello,
I was trying to update a ZCatalog within a DTML Method by using DTML and I could not figure it out how to do it.
I have the following structure:
MyFolder | |--MyDTML_Method | |--MyCatalog
within the DTML Method "MyDTML_Method" I would like to update the "MyCatalog" using DTML so I do not need to go in the "Advanced" View of "MyCatalog" and click the [Update] button.
Any what DTML Code can do this ?
thanks in advance Nico
---------------------------------------------------------------- nico grubert (education & publishing) nico@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 29
--__--__--
Message: 10 Date: Thu, 7 Jun 2001 11:02:16 +0200 From: Oliver Bleutgen <myzope@gmx.net> Reply-To: Oliver Bleutgen <myzope@gmx.net> To: zope@zope.org Subject: Re: [Zope] Updating a ZCatalog within a DTML Method
Hello,
I was trying to update a ZCatalog within a DTML Method by using DTML and I could not figure it out how to do it.
I have the following structure:
MyFolder | |--MyDTML_Method | |--MyCatalog
within the DTML Method "MyDTML_Method" I would like to update the "MyCatalog" using DTML so I do not need to go in the "Advanced" View of "MyCatalog" and click the [Update] button.
Any what DTML Code can do this ?
You should find this information right in=20 the source of the advanced page. =46rom what I see there, it might work like <dtml-call "yourcatalog.manage_catalogReindex()">
cheers, oliver
--__--__--
thank you, oliver. I had tried this before, within the DTML Method called "testUpdate" but <dtml-call "MyCatalog.manage_catalogReindex()"> brings me the following error: ---------------------------------------------------------------------------------- Error Type: TypeError Error Value: not enough arguments; expected 4, got 1 Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File C:\Programme\dev01_zope232\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Programme\dev01_zope232\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Programme\dev01_zope232\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\Programme\dev01_zope232\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Programme\dev01_zope232\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: testUpdate) File C:\Programme\dev01_zope232\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: testUpdate) File C:\Programme\dev01_zope232\lib\python\OFS\DTMLMethod.py, line 189, in __call__ (Object: testUpdate) File C:\Programme\dev01_zope232\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: testUpdate) File C:\Programme\dev01_zope232\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: MyCatalog.manage_catalogReindex()) (Info: MyCatalog) File <string>, line 0, in ? TypeError: (see above) --------------------------------------------------------------
participants (1)
-
Nico Grubert