Re: [Twisted-Python] Question : Combining wokel XMPP and twisted.internet.serial

2011-12-22 Thread Tim Allen
On Fri, Dec 23, 2011 at 11:09:32AM +0700, bino oetomo wrote: > the "print self.writethis" do as told > > but the "self.serial.write(self.writethis)" line raise an exceptions > --START- >File "./mytac01.tac", line 44, in onMessage > self.serial.write(self.writet

Re: [Twisted-Python] Question : Combining wokel XMPP and twisted.internet.serial

2011-12-22 Thread bino oetomo
Dear Jean-Paul Thankyou for your help. On 12/23/2011 09:57 AM, exar...@twistedmatrix.com wrote: > > A SerialPort doesn't have a transport. It is a transport. Instead of: > > self.serial.transport.write(foo) > > try > > self.serial.write(foo) > Here is my function (edited) ---START-

Re: [Twisted-Python] Question : Combining wokel XMPP and twisted.internet.serial

2011-12-22 Thread exarkun
On 02:50 am, b...@indoakses-online.com wrote: >[snip] >The problem is when there is msg coming from XMPP part >It's received by the xmpp client part, but script complaining about >'SerialPort' object has no attribute 'transport' >I tried to send text from another xmppclient (pidgin) A SerialPort d

Re: [Twisted-Python] Question : Combining wokel XMPP and twisted.internet.serial

2011-12-22 Thread bino oetomo
Dear Lucas I realy appreciate your pastebin On 12/22/2011 01:12 PM, Lucas Taylor wrote: > > > ...and an update to your pastebin that may be helpful for context: > http://pastebin.com/2EJ22wXa > When I first try to adapt your script, there is error complaining about that "serial" have no "setParen