[Zope-dev] Computed fields in ZCatalog

Itamar Shtull-Trauring itamars@ibm.net
Sun, 13 Feb 2000 12:44:42 +0200


Martijn Pieters wrote:

> >     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.

In other words, use PythonMethods.  They are exectly what you need for this
kind of thing.

parameters: self
body:
return self.Property1 + self.Property2

-- 
Itamar S.T.  itamars@ibm.net