twisted.python.components.registerAdapter(adapterFactory, origInterface, *interfaceClasses)
function documentationtwisted.python.components
View Source
Register an adapter class.
An adapter class is expected to implement the given interface, by adapting instances implementing 'origInterface'. An adapter class's __init__ method should accept one parameter, an instance implementing 'origInterface'.