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

2011-12-25 Thread bino oetomo
Dear Tim Allen and Jean-Paul I realy appreciate your enlightment .. i try it and it works Sincerely -bino- On 12/23/2011 11:15 AM, Tim Allen wrote: > It looks like "self.writethis" is an Element, not a string. Python's > print statement will automatically call str() on things before it prints > th

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

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

2011-12-21 Thread bino oetomo
Dear Lucas Taylor Thankyou for your fast enlightment. It's time for me to re-build my ejabberd turnkey linux Sincerely -bino- On 12/22/2011 01:12 PM, Lucas Taylor wrote: > > > This is a relevant FAQ for this situation: > http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinpu

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

2011-12-21 Thread Lucas Taylor
On Dec 21, 2011, at 9:52 PM, bino oetomo wrote: Dear All .. A year ago, I need send some defined message to a jabber conference. The message content will depend on a "button-press". My trick is to use ttyctrl (http://ttyctrl.sourceforge.net/). So basicaly my "system" is builded from several p

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

2011-12-21 Thread bino oetomo
Dear All .. A year ago, I need send some defined message to a jabber conference. The message content will depend on a "button-press". My trick is to use ttyctrl (http://ttyctrl.sourceforge.net/). So basicaly my "system" is builded from several parts: 1. TTYCTRL : I made some small python XMLRPC c