[Zope3-Users] Problems reindexing on ObjectModifiedEvent

ksmith93940-dev at yahoo.com ksmith93940-dev at yahoo.com
Thu Jan 18 16:07:06 EST 2007


I need to investigate this further now, but this
problem so far seems to isolated to the ValueIndex.

Also, when the ObjectModifiedEvent is replaced with an
ObjectCreatedEvent, the object is properly indexed.

...

--- ksmith93940-dev at yahoo.com wrote:

> 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)
>             
> 
> 
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 



More information about the Zope3-users mailing list