[Twisted-Python] How can I mix the proxy function into a special protocol

slowtech chen slowtech.chen at yahoo.com
Mon Jan 15 23:17:09 EST 2007

Hi guys,

I tried to do this with multiple inheritances:

class MyProxyServer(basic.Int32StringReceiver, ProxyServer):
    def dataReceived(self, data):        
        basic.Int32StringReceiver.dataReceived(self, data)      
        ProxyServer.dataReceived(self, data)

but I got the following errors:

exceptions.AttributeError: 'NoneType' object has no attribute 'transport'

why the setPeer method of ProxyServer isn't called here?  Are there any better solutions for this problem?


No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20070116/1b03f894/attachment.htm 

More information about the Twisted-Python mailing list