Re: [Zope-dev] Adding ZCatalog index programatically

2000-05-19 Thread Dieter Maurer
R. David Murray writes: > I was just looking at the ZCatalog code to figure out how to programatically > add an index to a Catalog. I figured out how to do that fairly easily, > but the code I was looking at has me a bit mystified. The method > manage_addIndex is defined. The form that you

Re: [Zope-dev] Adding ZCatalog index programatically

2000-05-18 Thread Chris McDonough
How about: yourcatalog._catalog.addIndex(id, 'FieldIndex') replace FieldIndex with TextIndex or KeywordIndex as desired. "R. David Murray" wrote: > > I was just looking at the ZCatalog code to figure out how to programatically > add an index to a Catalog. I figured out how to do that fairly

[Zope-dev] Adding ZCatalog index programatically

2000-05-18 Thread R. David Murray
I was just looking at the ZCatalog code to figure out how to programatically add an index to a Catalog. I figured out how to do that fairly easily, but the code I was looking at has me a bit mystified. The method manage_addIndex is defined. The form that you use through the management interface