[Twisted-Python] zope.component or twisted.python.components

Hello! I am twisted-newcomer, and i try ported my Zope3 application to twisted+nevow. Can i use zope.components package from Zope3 (only for my objects of course) instead twisted.python.components, is it legal?

On Sat, 24 Sep 2005 01:18:26 +0400, Garanin Michael <garanin@m-lan.ru> wrote:
The only constraint in place is that if you pass an object to someone else's code (for example, to Twisted), it behaves as they expect it to. I doubt many people have tried this (or at least, they have not talked about it), but there should be no categorical reason for it to fail. Let us know if you run into any problems that you think represent unreasonable incompatibilities. Jp

On Tue, 2005-09-27 at 00:17 +0400, Garanin Michael wrote:
twisted.python.components is just a layer on top of the standard Zope3 AdapterRegistry (and mostly it's just backwards compat cruft). So you can for example register named adapters, etc.. Or you could isntall Zope3 and use its APIs for registering these things; the adaptation hooks are global so it will all interoperate nicely.

On Sat, 24 Sep 2005 01:18:26 +0400, Garanin Michael <garanin@m-lan.ru> wrote:
The only constraint in place is that if you pass an object to someone else's code (for example, to Twisted), it behaves as they expect it to. I doubt many people have tried this (or at least, they have not talked about it), but there should be no categorical reason for it to fail. Let us know if you run into any problems that you think represent unreasonable incompatibilities. Jp

On Tue, 2005-09-27 at 00:17 +0400, Garanin Michael wrote:
twisted.python.components is just a layer on top of the standard Zope3 AdapterRegistry (and mostly it's just backwards compat cruft). So you can for example register named adapters, etc.. Or you could isntall Zope3 and use its APIs for registering these things; the adaptation hooks are global so it will all interoperate nicely.
participants (3)
-
Garanin Michael
-
Itamar Shtull-Trauring
-
Jp Calderone