[Zope3-dev] EventService, references, and subscription semantics

Steve Alexander steve@cat-box.net
Mon, 25 Feb 2002 23:18:58 +0000


Shane Hathaway wrote:
> 
> Well, I may be wrong, but I don't think you can go that far.  If you 
> have a persistent LDAP-backed user database and you want to register an 
> LDAP-based user object as an event listener (perhaps to expire the 
> user's password), how would the IReferenceLookup utility know to use a 
> path/userid-based reference as opposed to a persistence-based reference 
> or an LDAP-based reference?  The only interface of the user objects is 
> IPrincipal.

So, you configure your IReferenceLookup utility to make decisions based 
on the location/context of the object.

Or, you make your Principals implement ILDAPLookedUp (in addition to 
IPrincipal), which the IReferenceLookup is configured to know about.

--
Steve Alexander