[Zope-dev] Computed fields in ZCatalog

Martijn Pieters mj@digicool.com
Sun, 13 Feb 2000 05:49:42 -0500


From: Kevin Dangoor [mailto:kid@kendermedia.com]
>
>     Looking at the ZCatalog code, if an index or metadata 
> field is callable
> for a particular object, then that function will be called. 
> However, it
> isn't called with *any* parameters. Is there any way to make 
> that metadata
> value based upon other values in the object?
> 
>     For example, if I wanted to create a method that would return
> Property1+Property2 and have that value show up in the 
> Catalog, can that be
> done?

Only with methods that don't need any arguments, like an External
Method. DTML Methods required arguments, so they will not do.

-- 
Martijn Pieters, Software Engineer 
| Digital Creations http://www.digicool.com 
| Creators of Zope      http://www.zope.org 
| mailto:mj@digicool.com       ICQ: 4532236
| PGP:
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
-------------------------------------------