[Zope-Coders] Proposal for minor ZCatalog improvement
Toby Dickenson
tdickenson@geminidataloggers.com
Mon, 11 Nov 2002 10:14:24 +0000
On Saturday 09 November 2002 9:45 am, Andreas Jung wrote:
> I propose add this functionality to all Zope indexes. All interface for
> pluggable indexes should get a new method getIndexedAttribute() that
> returns the name of the attribute that will be indexed by this index
The name of that method implies that it would be reasonable to do:
getattr(object,index.getIndexedAttribute())=20
Is that a requirement?
I have some pluggable indexes which index properties of objects that are =
not=20
available as attributes, and where the property identity is not naturally=
a=20
string.
Currently the id of my indexes contain the 'property identity' munged int=
o an=20
ugly string (Yes, even more ugly that "topic_txt" ;-) because I am=20
constrained by the syntax of python attribute ids.
Can I implement getIndexedAttribute() to return a nicely formatted descri=
ption=20
of the property identity?