[Zope3-Users] Re: IObjectModifiedEvent

Fred Drake fdrake at gmail.com
Fri Jun 2 09:12:15 EDT 2006


On 6/1/06, Marco Mariani <marco at sferacarta.com> wrote:
> This brings the question: is it the form's responsibility, or the
> container's? Why is a container any different than other content
> objects?

The responsibility lies with the code making the change.  For
containers, the container code really is adding/renaming/removing, so
it can take care of the events.  For other objects, it can be hard to
tell what really constitutes a change for the purposes of the
application.  Not every attribute value might be considered part of
the application-level state; variables that simply represent caches
might not "count" for application purposes.  Only the application can
make these determinations.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca


More information about the Zope3-users mailing list