RE: [Zope] ZCatalog: How to use a subattribute as index?
-----Original Message----- From: Hung Jung Lu [mailto:hungjunglu@hotmail.com] Sent: Friday, January 21, 2000 5:03 PM To: zope@zope.org Subject: [Zope] ZCatalog: How to use a subattribute as index?
Hi,
I would like to use ZCatalog to catalog my ZSQL methods, in particular, I am interested in search ZSQL methods with templates containing a given table or row name.
Give a ZSQL method "mySqlMethod", the raw template is in the attribute "mySqlMethod.template.raw". You can see my trouble, now. How can I catalog an index that is a subattribute of an attribute?
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... -Michel
participants (1)
-
Michel Pelletier