[Zope] ZCatalog: How to use a subattribute as index?

Hung Jung Lu hungjunglu@hotmail.com
Fri, 21 Jan 2000 16:53:18 PST


>From: Michel Pelletier <michel@digicool.com>
>Programatically.  The 'Find' machinery will not find the sub-sub-attr if
>the sub-attr is not traversable.
>
>Create an index called 'raw'.
>
><dtml-with "mySQLMethod">
>   <dtml-call "Catalog.index_object(template, absolute_url())">
></dtml-with>
>
>or something like that...

Where can I find out more about the index_object?

Is your "Catalog" a default attribute of all ZObjects,
or is your "Catalog" the instance of ZCatalog?

I tried what you said but it does not work. I still
cannot find the right object.

I guess the next thing to try is subclassing Z SQL Method?

Hung Jung

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com