[Twisted-Python] Interfaces and adapters

Andrew Bennetts andrew-twisted at puzzling.org
Sat Aug 27 12:07:09 EDT 2005


On Sat, Aug 27, 2005 at 01:09:21PM +0400, en.karpachov at ospaz.ru wrote:
[...]
> There is another problem with it. The twisted.web.server.Session cannot
> declare itself implementing nevow.inevow.ISession as it doesn't know
> anything about nevow; but nevow registers it as default adapter from
> WovenContext to inevow.ISession. So we have a situation:

zope.interface allows for this case -- nevow.inevow just needs to say:

    zope.interface.classImplements(twisted.web.server.Session, ISession)

-Andrew.





More information about the Twisted-Python mailing list