|
Re: events gripes: msg#00066web.zope.z3base.five
whit wrote: when IObjectMoved events get dispatched to sublocations upon a container rename, are event.newName and event.oldName suppose to be the new and old name of the container(which, to me, seems meaningless to subscriber), No. or the old and new name of the object that is the focus of the event (as it is if you move an object)? Yes. Assuming you mean the correct thing for "the focus of the event". I get the old and new name for the container for *every* object event involved in the container modification. When a event is dispatched to sublocations, it doesn't change, it's still the same event. It's just redispatched. The doc in Five/doc/event.txt says this: The ``event`` won't change though, and ``event.object`` will still be the original object for which the event was initially sent (this corresponds to ``self`` and ``item`` in the ``manage_afterAdd`` method -- ``self`` is ``ob``, and ``item`` is ``event.object``). Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@xxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [Plone-developers] Re: Re: [z3-five] zope.viewlet and zope.contentprovider - options for Zope 2 and Plone 3: 00066, Jean-Marc Orliaguet |
|---|---|
| Next by Date: | Dear Sir: 00066, shivayogi kumbar |
| Previous by Thread: | events gripesi: 00066, whit |
| Next by Thread: | Dear Sir: 00066, shivayogi kumbar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |