[Zope3-dev] Principal Folder How-To

Dominik Huber dominik.huber at projekt01.ch
Mon Feb 21 08:51:27 EST 2005


Jim Fulton wrote:

> Dominik Huber wrote:
>
>> We could provide only the main interface (master) by implementation 
>> and the others by adaption...
>>
>> class IAMaster(Interface):
>>    """...
>>       Utilities providing this interface must offer IASlave by adaption.
>>   """
>
>
> This doesn't work.  While it is true that pairs of interfaces are often
> provided by the same object, this is not always the case.  So, for 
> example,
> principal folders provide IAuthenticationPlugin and 
> IPrincipalSearchPlugin,
> group folders provide only IPrincipalSearchPlugin.  In theory, a plugin
> that privided IAuthenticationPlugin and IPrincipalSearchPlugin, might 
> also
> provide IPrincipalFactoryPlugin.  This is the case, I believe for the 
> Zope 2
> LDAP plugin.

I lacked of understanding... I wasn't aware that the same local utility 
can be registered several times. Just now I found the *Advanced Options* 
link, cool :) <registrations.html>

Thanks for open my eyes!
Dominik Huber





More information about the Zope3-dev mailing list