<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>&nbsp;&nbsp;&nbsp; def dataReceived(self, data):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; basic.Int32StringReceiver.dataReceived(self, data)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ProxyServer.dataReceived(self, data)<br><br>but I got the following errors:<br><br>&nbsp;&nbsp;&nbsp; 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?&nbsp; 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>