I left out a comma in the tuple -- that should have been...
emailAddressCollection.rep.addIndex('emailAddress', 'compare',
compare='_compareAddr', monitor=('emailAddress',))
On Jan 30, 2006, at 11:31 AM, Morgen Sagen wrote:
Something else to be aware of: if you are using a 'compare'-style
index as in this example, and you want the index to be kept up to
date when the attribute values change, you need to add a 'monitor'
keyword to the addIndex( ) call, like so:
emailAddressCollection.rep.addIndex('emailAddress', 'compare',
compare='_compareAddr', monitor=('emailAddress'))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev