[Zope] stopping indexing of acquired attributes

Luca Olivetti luca@wetron.es
Mon, 30 Dec 2002 17:08:15 +0100


Luca Olivetti wrote:

> 
> 2) the content of the script is
> 
> attr=getattr(context.aq_explicit,'yourattributename')

hmmm, change that to

attr=getattr(context.aq_explicit,'yourattributename',())

if it is to be picked up by a keyword index

> if callable(attr): attr=attr()
> return attr


-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007