[Twisted-Python] Doubt regarding registerAdapter in sshsimpleserver.py

Anshul Singhle anshul.singhle at gmail.com
Thu Jun 23 20:37:15 EDT 2011


Hi,
I'm a Twisted newbie and I'm working on a custom ssh daemon for serving git.
I happened to read one of the example files sshsimpleserver.py at *
http://twistedmatrix.com/projects/conch/documentation/examples/* . At line
93 ExampleSession is registered as an Adapter for ExampleAvatar adapting it
to session.ISession. As i understand, to actually do the adaptation a call
like ISession(ExampleAvatar) has to be done (?). This call hasn't been done.
Am i missing something?
Thanks in advance,
Anshul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110624/bc2b1254/attachment.htm 


More information about the Twisted-Python mailing list