[Zope3-dev] Location events on containers

Jim Fulton jim at zope.com
Tue Dec 23 10:41:03 EST 2003


I think it's a good time to take a fresh look at event processing.

In the near future, I'd like to see a proposal on refactoring the event
service, but prior to that, I'd like to kick some ideas around.

We will need to refactor the event service to some degree to deal with
parentgeddon.  In:

   http://dev.zope.org/Zope3/LocationRelatedEvents

I raised an issue wrt location-relevent events on containers.

My current thinking is that there should be an interface,
ISublocations, for getting sublocations of an object:

   class ISublocations(Interface):

      def sublocations():
          """Return the sublocations of an object

          An iterable object is returned.
          """

We will use partial adapters to allow multiple sublocation adapters
to be provided to deal with various aspect of an object.

The alternative is to use a relationship service or an object hub
to keep track of locations.  I prefer a more distributed approach.
In any case, one could always provide sublocation adapters that use
centralized services, if desired.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list