[Zope3-Users] Problems reindexing on ObjectModifiedEvent

ksmith93940-dev at yahoo.com ksmith93940-dev at yahoo.com
Thu Jan 18 13:49:23 EST 2007


Hi list,

For some reason, everytime an object is modified, all
of the catalog information for that object is lost.

A full catalog reindex works.

Do I need to subscribe the interfaces of the catalog
indexes to the ObjectModfiedEvent or something? I
appreciate any pointers.


Thanks,

Kevin Smith

formlib code:

@action(_("Apply"), condition=haveInputWidgets)
def handle_edit_action(self, action, data):

    if applyChanges(self.context, self.form_fields,
data, self.adapters):
       
zope.event.notify(ObjectModifiedEvent(self.context))


sample interface used in a setindex:
class ISection(interface.Interface):
    """ """

    section = schema.List(title=u"Section",
                         
value_type=schema.TextLine(title=u'Section'),
                          default=[],
                               required=False)
            




More information about the Zope3-users mailing list