[Zope3-dev] Multi Interface Types Registration
Jim Fulton
jim at zope.com
Mon Apr 25 09:49:31 EDT 2005
Dominik Huber wrote:
> Hi Stephan,
>
> Is there a specific reason why only one interface type is directly
> provided per interface?
> If two types are registered for one interface the first type is chucked
> out of the interface during the registration of the second,
> but the first stays still registered within the utitlity service.
> Bug or Feature?
>
> IMO multi-typed interfaces would make sense. Would you have any
> objections if I change the code the following way:
>
> module: zope.app.component.interface.py, line 78
> 75 if iface_type is not None:
> 76 if not iface_type.extends(IInterface):
> 77 raise TypeError(iface_type, "is not an interface type")
> 78 directlyProvides(interface, iface_type,
> directlyProvidedBy(interface))
+1
--
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