<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi guys,<br><br>I tried to do this with multiple inheritances:<br><br>class MyProxyServer(basic.Int32StringReceiver, ProxyServer):<br> def dataReceived(self, data): <br> basic.Int32StringReceiver.dataReceived(self, data) <br> ProxyServer.dataReceived(self, data)<br><br>but I got the following errors:<br><br> self.peer.transport.write(data)<br>exceptions.AttributeError: 'NoneType' object has no attribute 'transport'<br><br>why the setPeer method of ProxyServer isn't called here? Are there any better solutions for this problem?<br>Thanks.<br><br>Best,<br>Chen<br><br><br><br><br><br></div></div><br>
<hr size=1><a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Food fight?</a> Enjoy some healthy debate<br>in the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Yahoo! Answers Food & Drink Q&A.</a></body></html>