[Twisted-Python] SSL and Perspective Broker

Itamar Shtull-Trauring itamar at itamarst.org
Tue Aug 5 10:37:58 EDT 2003


On Tue, 5 Aug 2003 10:16:46 -0400 (EDT)
Edmund Dengler <edmundd at eSentire.com> wrote:

> Downloading the CVS to give it a go. Is there any reason to deprecate
> this method? Is getObjectAt() also going to be deprecated?

Yes, and yes :)

The reason is that it ties getting an object to the transport. Every
time you write a new transport, you need to write a new function.
Whereas with the new way, which is the normal way Twisted protocols
work, new transport can be used without writing extra code. In addition
you have the benefits of auto-reconnecting if you want, ability to do
multiple logins over the same PB connection easily, and in general code
that is much cleaner.

-- 
Itamar Shtull-Trauring    http://itamarst.org/
Available for Python & Twisted consulting




More information about the Twisted-Python mailing list