[Zope3-dev] Event fixes
Dominik Huber
dominik.huber at perse.ch
Thu Nov 24 07:32:32 EST 2005
Florent Guillaume wrote:
> I'd like to do a few simple fixes to events in Zope 3.2 before it's
> too late:
>
> - Add the source to IObjectCopiedEvent, per
> http://www.zope.org/Collectors/Zope3-dev/478
> I believe I received a +1 on this
>
> - Make OrderedContainer.updateOrder send an IObjectModifiedEvent.
> Today when you change the order no event at all is fired, this is wrong.
+1
> - Finally I'd like to make all containers send a specific subclass
> instead of just an IObjectModifiedEvent (I propose naming it
> IContainerModifiedEvent), because it makes it possible to isolate
> change to an object that only affect the 'containment' aspect of it.
> Subscribers can then have specific optimizations, for instance a
> catalog would want to isolate this because it only affects
> containment boundaries and not the "content" of the object. (This is
> a concrete use case BTW, in CPS's event model we have this
> distinction and it's useful.)
The IModificationDescription (zope.app.event.interfaces) tries to achive
a similar thing. There was a modification desciription for
attributes(.objectevent.Attributes). During the isar-sprint we introduce
a modification description for sequences (.objectevent.Sequence).
(IMO we should prevent an explosion of event subclasses.)
Regards,
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dominik.huber.vcf
Type: text/x-vcard
Size: 154 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20051124/459f0598/dominik.huber.vcf
More information about the Zope3-dev
mailing list