Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-02-04 Thread exarkun
On 08:20 am, albert.bra...@weiermayer.com wrote: >On Thu, Feb 03, 2011 at 07:00:39PM -, exar...@twistedmatrix.com >wrote: >>That probably makes sense, but first, does the endpoints string >>description plugin API help? You can provide >>IStreamServerEndpointStringParser (defined in >>twisted.

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-02-04 Thread Albert Brandl
On Thu, Feb 03, 2011 at 07:00:39PM -, exar...@twistedmatrix.com wrote: > There are some tickets filed already for adding some other kinds of > endpoints (eg an IPv6 endpoint - > http://twistedmatrix.com/trac/ticket/4470), but it doesn't look like > there's one for serial port, so yea - it wo

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-02-04 Thread Albert Brandl
On Thu, Feb 03, 2011 at 07:00:39PM -, exar...@twistedmatrix.com wrote: > That probably makes sense, but first, does the endpoints string > description plugin API help? You can provide > IStreamServerEndpointStringParser (defined in > twisted.internet.interfaces) plugins to extend the parse

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-02-03 Thread exarkun
On 10:18 am, albert.bra...@weiermayer.com wrote: >Hi! > >On Mon, Jan 31, 2011 at 10:18:00PM -, exar...@twistedmatrix.com >wrote: >> >>I think that now the way it would make sense to add this is to add a >>serialport endpoint. This would be usable with >>twisted.internet.endpoints.serverFromEn

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-02-03 Thread Albert Brandl
Hi! On Mon, Jan 31, 2011 at 10:18:00PM -, exar...@twistedmatrix.com wrote: > > I think that now the way it would make sense to add this is to add a > serialport endpoint. This would be usable with > twisted.internet.endpoints.serverFromEndpoint (or clientFromEndpoint, I > can never rememb

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-31 Thread exarkun
On 03:50 pm, albert.bra...@weiermayer.com wrote: >Hi! > >I'm quite happy that my question (or really: Itamar's answer) triggered >the interesting discussion about glossaries. But there are some aspects >about SerialPort that are not yet clear to me. So I'm trying to reclaim >this thread ;-). > >On

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-31 Thread Albert Brandl
Hi! I'm quite happy that my question (or really: Itamar's answer) triggered the interesting discussion about glossaries. But there are some aspects about SerialPort that are not yet clear to me. So I'm trying to reclaim this thread ;-). On Fri, Jan 28, 2011 at 08:25:52AM -0500, Itamar Turner-T

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-30 Thread Kevin Horn
On Sun, Jan 30, 2011 at 2:22 AM, Glyph Lefkowitz wrote: > On Jan 29, 2011, at 10:47 PM, Andrew Bennetts > wrote: > > > Glyph Lefkowitz wrote: > > [...] > >> The whole idea of a glossary concerns me a little bit. … However, > Twisted > >> does have its own jargon and a dictionary to help the

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-30 Thread Glyph Lefkowitz
On Jan 29, 2011, at 10:47 PM, Andrew Bennetts wrote: > Glyph Lefkowitz wrote: > [...] >> The whole idea of a glossary concerns me a little bit. … However, Twisted >> does have its own jargon and a dictionary to help the novice parse it would >> be a good thing. >> What I'd really like t

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-29 Thread Andrew Bennetts
Glyph Lefkowitz wrote: [...] >The whole idea of a glossary concerns me a little bit.  … However, Twisted >does have its own jargon and a dictionary to help the novice parse it would >be a good thing. >What I'd really like to see in this regard is to make sure that every >"jargo

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Kevin Horn
On Fri, Jan 28, 2011 at 1:33 PM, Glyph Lefkowitz wrote: > > On Jan 28, 2011, at 10:38 AM, Kevin Horn wrote: > > > > On Fri, Jan 28, 2011 at 7:25 AM, Itamar Turner-Trauring < > ita...@itamarst.org> wrote: > >> >> A service is supposed >> to be something you can start and stop, and encapsulates a >>

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Glyph Lefkowitz
On Jan 28, 2011, at 10:38 AM, Kevin Horn wrote: > > > On Fri, Jan 28, 2011 at 7:25 AM, Itamar Turner-Trauring > wrote: > > A service is supposed > to be something you can start and stop, and encapsulates a > self-contained piece of business logic. > > -Itamar > > > > This or something ve

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Tom Davis
On Fri, Jan 28, 2011 at 10:38 AM, Kevin Horn wrote: > > > On Fri, Jan 28, 2011 at 7:25 AM, Itamar Turner-Trauring < > ita...@itamarst.org> wrote: > >> >> A service is supposed >> to be something you can start and stop, and encapsulates a >> self-contained piece of business logic. >> >> -Itamar >>

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Kevin Horn
On Fri, Jan 28, 2011 at 7:25 AM, Itamar Turner-Trauring wrote: > > A service is supposed > to be something you can start and stop, and encapsulates a > self-contained piece of business logic. > > -Itamar > > > This or something very much like it should be in the Twisted Glossary. Kevin Horn

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Itamar Turner-Trauring
On Fri, 2011-01-28 at 09:29 +0100, Albert Brandl wrote: > I'd like to run the application with twistd. But it looks as if SerialPort > does not really fit into this framework. It does not implement IService, > so `my_serial_port.setServiceParent(collection)` does not work. Just implement your own

Re: [Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Ralph Meijer
On Fri, 2011-01-28 at 09:29 +0100, Albert Brandl wrote: > Hi! > > In our project, we accumulate data from various sources. Some of them are > connected via serial line (e.g. a GPS receiver and a weather station). > > I'd like to run the application with twistd. But it looks as if SerialPort > doe

[Twisted-Python] Using SerialPort with t.a.s.Application

2011-01-28 Thread Albert Brandl
Hi! In our project, we accumulate data from various sources. Some of them are connected via serial line (e.g. a GPS receiver and a weather station). I'd like to run the application with twistd. But it looks as if SerialPort does not really fit into this framework. It does not implement IService,