[Zope3-Users] Problems reindexing on ObjectModifiedEvent

2007-01-18 Thread ksmith93940-dev
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=uSection,
 
value_type=schema.TextLine(title=u'Section'),
  default=[],
   required=False)



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Problems reindexing on ObjectModifiedEvent

2007-01-18 Thread ksmith93940-dev
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.

...

--- [EMAIL PROTECTED] 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=uSection,
  
 value_type=schema.TextLine(title=u'Section'),
   default=[],
required=False)
 
 
 
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users
 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Problems reindexing on ObjectModifiedEvent

2007-01-18 Thread Gary Poster


On Jan 18, 2007, at 4:07 PM, [EMAIL PROTECTED] wrote:


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.


Hi Kevin.  We don't know of any issues with the ValueIndex, nor does  
this problem sound familiar.  While I can't help you diagnose, if you  
discover the problem and it's in zc.catalog then I will help fix!


Gary


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users