logo       

catalog metadata for fields: msg#00103

web.zope.plone.archetypes.devel

Subject: catalog metadata for fields

I'm trying to get a field in my new content type added to the metadata
for portal_catalog, so I use "index='TextIndex:schema'" in the schema
for the field. When I reinstall my content type product, nothing for
the field is added to either the Indexes or Metadata for
portal_catalog.

The install_indexes function in Archetypes/Extensions/utils.py looks
screwy to me, so I patched it (see attachment). Now when I reinstall
I get a new item for the field in both the Indexes and Metadata.

In both cases, the item name is "getFoo" for a field named "foo".
Kind of odd, but it seems to work.

--
Fred Yankowski fred-Gp3ZhEtj/ctBDgjK7y7TUQ@xxxxxxxxxxxxxxxx tel:
+1.630.879.1312
OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370
www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA

Attachment: utils.py.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise