Stephan Richter wrote:
On Thursday 24 November 2005 07:13, 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
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.

Eek, +1 definitely.

- 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.)


This shouldn't affect existing subscribers at all, because they'd be
subscribing to IObjectModifiedEvent and this would still match.


Please give me your opinion on this quickly, unless you're too busy
flaming :)

So, +1 for the proposal.

I've checked in all that.

I didn't follow Dominik's suggestion of using IModificationDescription because I feel this a case sufficiently fundamental that we really want a subclass.


Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   [EMAIL PROTECTED]
Zope3-dev mailing list

Reply via email to