AW: [Zope3-dev] Propose interface change (well not really)

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jul 8 17:43:39 EDT 2004


On Thursday 08 July 2004 17:27, Roger ineichen wrote:
> Why does the IPrincipalSource not inherit from IContained?

It was just not done yet. Just do it.

> Is it possible to have IPrincipalSource outside a
> IPluggableAuthenticationService, because we don't have a

No.

> ContainerTypesConstraint for IPluggableAuthenticationService
> like:
>     __parent__= Field(
>         constraint =
> ContainerTypesConstraint(IPluggableAuthenticationService))

Add it. This code is much older than the constraint code.

> And why we don't have read methods of the container in this interface?
> Or at least the methods __len__(), keys(), values()

Don't we use IContainer as a base class for IPrincipalSource? If not, you can 
do this as well.

> This way we can't get the size of the source or useable infos out
> of the principal source. Just authenticate.
>
> ----
> See, the IContainerPrincipalSource is inherited from IContained
> but not the IPrincipalSource.

Probably a mistake.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list