[Twisted-Python] Components

Christopher Armstrong radix at twistedmatrix.com
Thu Feb 26 12:09:34 EST 2004

James Y Knight wrote:
> So I want to merge the changes from Nevow that allow lazy adapter  
> registration via string arguments to registerAdapter:
> registerAdapter("nevow.freeform.StringRenderer","nevow.formless.String", 
> "nevow.freeform.ITypedRenderer")
> However, doing this necessarily means the removal of the implicit  
> super-interface feature, where twisted automatically registers  
> StringRenderer for all super-interfaces of ITypedRenderer. As there is  
> no way to look up the super-interfaces of a string at registerAdapter  
> time (without loading up the module), this feature cannot stay.
> I also doubt that's actually used by anyone. I can't think of a reason  
> why I'd want to do that. The test suite doesn't even test it: all tests  
> pass after removing it. There is a test for the behavior of the  
> components.superInterfaces function, but not for actually registering  
> adapters.

Maybe this was the dubious failure that I've heard rumoured in 
NewReality when last someone tried to implement this feature. It'd be 
really nice if glyph or whoever tried implementing it last would explain 
what exactly the backwards-incompatibility problem they ran into was.

  Twisted | Christopher Armstrong: International Man of Twistery
   Radix  |          Release Manager,  Twisted Project
---------+           http://radix.twistedmatrix.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040226/31d54995/attachment.pgp 

More information about the Twisted-Python mailing list