[Zope-dev] ZCatalog: Forgot to mention

Martijn Pieters mj@digicool.com
Fri, 10 Mar 2000 00:34:33 +0100


From: "Rik Hoekstra" <rik.hoekstra@inghist.nl>
> You can catalog mthod results as well. But as catalog won't pass in any
> parameters, you cannot use DTML Methods or Documents. Use an External
Method
> or Python Method instead.
>
>
> [RH>Hm, I didn't know about this feature either (is this documented
> somewhere, if not, I'll try and document it when i understand it ;-)), so
I
> was experimenting a little.
> Using a DTML Document/method did work. However, I did not get to the point
> of getting it working for a method other than with a simple text content
> (like '1 2 3'). This the Catalog did return.
> I did not yet figure out how to query it. A standard search method did not
> return any results. However, the report from the search interface called
on
> its own (without using the search form from the search interface) actually
> _did_ return all results.
> Could someone help me to understand this further? Michel?
>
> By the way, wasn't it also possible to index sql methods (if called as
> records through the web?)

I don't know about SQL Methods.

Your DTML Method worked, because it didn't try to access anything in the
namespace. As your method doesn't get called with the client and namespace
arguments, you cannot access anything outside the method itself.

Martijn Pieters
| Software Engineer    mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope       http://www.zope.org/
|   The Open Source Web Application Server
---------------------------------------------