[Zope3-dev] Principal Folder How-To

Jim Fulton jim at zope.com
Mon Feb 21 09:18:59 EST 2005


Dominik Huber wrote:
> 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>

Yeah, now you know that something that was already too complicated to understand
has an "advanced" option. ;)

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