[Zope3-dev] EventService, references, and subscription semantics
Jim Fulton
jim@zope.com
Tue, 26 Feb 2002 17:08:14 -0500
Steve Alexander wrote:
>
> Casey Duncan wrote:
> >
> >
> >>Then, we still have the issue of what to use for references.
> >>We can use object references provided we're happy to only allow
> >>persistent objects to be passed to subscribe().
> >>
> >
> > This is the problem I tried to work on in my ExplicitObjectReferences
> > proposal. The problem with using regular object references is that the
> > subscriber looses its original context and the reference makes the object
> > persist even if it is deleted from its original location.
> >
> > So unless these two things aren't an issue, I don't think object references
> > will work for this. I will definitely not mind being wrong, however.
>
> I thinnk you're wrong :-)
>
> The object references are only used in the EventService to keep a
> collection of subscribers.
I think he's right, because the behavior of the subscribe might
depend on it's context.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (888) 344-4332 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org