Hello all,

Thanks for replying.

On Thu, 2011-06-23 at 17:19 +0200, Charlie Clark wrote:
> The indices do have to be updated every time you add, delete or modify
> an object. This is one of the reasons for the event system you were
> asking  about the other week.

As the size of sm['intids'] were getting incremented as and when new
objects were added, without me doing anything explicitly about it. I was
of the notion that I don't need to explicitly update the indexes. 

If I subscribe for 'IContainerModifiedEvent' for the container of
'Client' object and update the indexes, then I think I'll miss out if
just the attributes of 'Client' object is modified. So, I think along
with this I should subscribe for 'IObjectModifiedEvent' of 'Client'
object. 

Will this be sufficient? Is there any other better way of doing this?

-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to