[Twisted-Python] SerialPort.loseConnection() BUG

Nestor A. Diaz nestor at tiendalinux.com
Mon Jun 8 22:53:11 MDT 2009


Hello, there is a bug on the SerialPort Win32 implementation (don't know 
about the others), when i call the loseConnection method, it returns:

twisted matrix exceptions.AttributeError:  'SerialPort' object has no 
attribute '_tempDataBuffer'

if i wrap the serialport class and put a :

        self._tempDataBuffer = ''

in the __init__ method, i get:

raise NotImplementedError("%s does not implement writeSomeData" % 
exceptions.NotImplementedError: __main__.MySerialPort does not implement 
writeSomeData

however the port gets closed the right way.

Slds.

-- 
Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-600-5490 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:211 at tiendalinux.com
Email/MSN: nestor at tiendalinux.com
http://www.tiendalinux.com/
Bogota, Colombia 





More information about the Twisted-Python mailing list