Interface Registration APIs

Registering Interfaces as Utilities

We can register a given interface with the global site manager as a utility. First, declare a new interface, which itself provides only the core API, zope.interface.interfaces.IInterface:

Now, register IDemo as providing ITestType

We can register IDemo as providing more than one interface: