Importing this module enables experimental support for using Zope X3 Interface objects with the protocols package, by registering an adapter from Zope X3's InterfaceClass to IOpenProtocol. The adapter supports the following subset of the declaration API:
The above code should result in Zope recognizing that instances of AnImplementation provide the Zope IBase interface.
classProvides
). This appears to be a by-design
limitation.
The current implementation of support for Zope X3 interfaces is currently based on Zope X3 beta 1; it may not work with older releases. Zope X3 requires Python 2.3.4 or better, so even though PyProtocols works with 2.2.2 and up in general, you will need 2.3.4 to use PyProtocols with Zope X3.