Re: [Twisted-Python] Proposed new homepage

2011-10-10 Thread Albert Brandl
ld also set the instance's `factory`. Of course that is an implementation detail, but I don't think we should set visitors on the wrong track right at the beginning ;-). Best regards, -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0)

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-07 Thread Albert Brandl
me to adapt my patches to fulfill the standards for the codebase. And it was very satisfying to finally have the patch accepted :-). Best regards, -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web:

Re: [Twisted-Python] Ideas for a Twisted Training

2011-06-17 Thread Albert Brandl
of pb. Any other pointers? It might be fun to talk about manholes. They allow you to inspect and change data in a running server - great for debugging and mocking functionality that is not yet implemented (or not available in the development environment). Regards, -- Albert Brandl Weiermay

Re: [Twisted-Python] Information on new endpoints API?

2011-06-15 Thread Albert Brandl
to indicate a boolean to this code somehow. It would > be simpler for whoever was supplying the value for debug_mode to just supply a > value for the endpoint string description instead. And if it's OK to > hard-code > the debug_mode boolean, why not just hard-code the str

Re: [Twisted-Python] Information on new endpoints API?

2011-06-15 Thread Albert Brandl
resentation has some advantages. It's easier to explain how to modify a configuration file that contains some strings than explaining how to modify Python source code. OTOH, losing meaningful debug messages hurts, of course ;-). Best regards, -- Albert Brandl Weiermayer Solutions GmbH | Abt

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread Albert Brandl
n TCP port 1049 or the serial device /dev/ttyS2. A nice side effect is that I have a central place where the connection details for all kinds of services are defined - should any port change, I know where to fix it. Regards, -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-

Re: [Twisted-Python] Question about using the adbapi

2011-05-10 Thread Albert Brandl
if the > pair is different that the latest. That is an interesting option, since it moves the responsibility from the Twisted server to the database. Thanks & best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +

Re: [Twisted-Python] Question about using the adbapi

2011-05-10 Thread Albert Brandl
the return value of a DB-API cursor's 'fetchall' method, or a Failure." Maybe it's obvious for people who know how Deferreds work :-/ Thanks, and best regards, -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 1

[Twisted-Python] Question about using the adbapi

2011-05-09 Thread Albert Brandl
it in a lambda function that fills latitude and longitude with the current values. Would this would be a better way to handle this requirement? How would you implement this? Thanks & best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone

Re: [Twisted-Python] Question about StreamServerEndpointService

2011-04-28 Thread Albert Brandl
I'd prefer to do this when I have more time (which will hopefully be the case in some weeks). Regards, -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web: http://ww

Re: [Twisted-Python] Question about StreamServerEndpointService

2011-04-27 Thread Albert Brandl
x27;t get lost? Sure - http://twistedmatrix.com/trac/ticket/5071. Best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com __

[Twisted-Python] Question about StreamServerEndpointService

2011-04-26 Thread Albert Brandl
artService` the second time. I might be wrong, but this looks like a bug to me. Maybe I didn't understand how to use this class, though... Any comments? Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 76

Re: [Twisted-Python] Running twistd with a compiled file

2011-04-21 Thread Albert Brandl
as afraid that having the application as source code might help in reverse engineering it, but starting the debugger in the application does not reveal much information for modules that are compiled. Thanks & best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistra

[Twisted-Python] Running twistd with a compiled file

2011-04-21 Thread Albert Brandl
observed with twistd 10.2.0. Of course, it's possible to move most of the logic to other (compiled) files, but I'd prefer if the application itself could also be deployed in compiled form. Is this a known problem? Can you suggest a workaround? Best regards, Albert -- Albert Brandl W

Re: [Twisted-Python] prerelease preview predocumentation

2011-03-29 Thread Albert Brandl
act that the links on the main page have different names from the ones on the subpages. Best regards, -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com __

Re: [Twisted-Python] Deferred documentation.

2011-03-23 Thread Albert Brandl
ot;hands-on training" example in the section "Tasks of our own" redefines the `callback` function in line 12. Best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web:

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

2011-02-04 Thread Albert Brandl
without knowing more about the purpose of the communication. Any opinions? I've added a corresponding remark to the ticket. Regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +

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

2011-02-04 Thread Albert Brandl
but it doesn't look like > there's one for serial port, so yea - it would be great if you could > file that one. Fine. Any suggestions for the name of the new endpoint? Best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone:

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

2011-02-03 Thread Albert Brandl
oals without making a new kind of IService > implementation, then great! Right now, this is sufficient for my purposes. Thanks and best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20

Re: [Twisted-Python] Guidance needed on serial device interaction

2011-02-02 Thread Albert Brandl
. It helped me a lot to read the source code in basic.py, which can be found in the directory twisted/protocols, or online here: http://twistedmatrix.com/trac/browser/tags/releases/twisted-10.2.0/twisted/protocols/basic.py It has lots of documentation and is very readable IMHO. Re

Re: [Twisted-Python] Task-based documentation started

2011-02-01 Thread Albert Brandl
en the same words are used and one of the uses is clearly a ToC. Maybe the title of the section should be renamed, then. > Thanks for the feedback! You're welcome! Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altm

Re: [Twisted-Python] Task-based documentation started

2011-02-01 Thread Albert Brandl
-contained? One small usability quirk: The presentation of links in an orange, bold font does not have much recognition value. I think it would be better to use the standard way of marking links by using a blue, underlined font. The same goes for links that have already been visited. Best regards,

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

2011-01-31 Thread Albert Brandl
ds I set its service Parent to the application. What would be the advantage of subclassing Service and redefining its startService and stopService methods? Thanks & best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720

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

2011-01-28 Thread Albert Brandl
rvice, so `my_serial_port.setServiceParent(collection)` does not work. Is there any technical reason that SerialPort does not implement IService? Could you suggest a workaround for this problem (other than dumping t.a.s.Application ;-))? Best regards, Albert -- Albert Brandl Weiermayer Solu

Re: [Twisted-Python] Question about SerialPort

2011-01-20 Thread Albert Brandl
eem to have any code to ensure a 3.5char between sent > packets Not sure about this - there is a structure called ctx which has a timeout_begin->tv_sec and timeout_begin->tv_usec (and a similar thing for timeout_end). On the first glance, this looks like variables for handling the b

[Twisted-Python] Question about SerialPort

2011-01-20 Thread Albert Brandl
e loop with a simple function call. TIA and best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com ___ Twisted

Re: [Twisted-Python] Handling of NMEA messages

2010-12-01 Thread Albert Brandl
uld be nice if we eventually > merged that code. :) It's kind of hard to understand what this repository is about. The README file looks like a copy of the README for Twisted 8.2.0 ;-). Regards, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster

[Twisted-Python] Handling of NMEA messages

2010-12-01 Thread Albert Brandl
, Albert -- Albert Brandl Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster phone: +43 (0) 720 70 30 14| fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http

[Twisted-Python] Uses of StringIO instead of cStringIO

2010-07-21 Thread Albert Brandl
ate a ticket to fix these imports. -- Best regards, Albert Brandl Weiermayer Solutions GmbH Abteistraße 12 A-4813 Altmünster phone: +43 (0) 720 70 30 14 fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com ___ Twisted-Python mailing list Twisted-P

Re: [Twisted-Python] twisted.protocols.basic.NetstringReceiver: Some errors are not visible

2010-07-14 Thread Albert Brandl
d now. Would you like to create a new ticket about the missing log messages? -- Best regards, Albert Brandl Weiermayer Solutions GmbH Abteistraße 12 A-4813 Altmünster phone: +43 (0) 720 70 30 14 fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com __

Re: [Twisted-Python] Start with QTReactor

2010-06-20 Thread Albert Brandl
helpful they are ;-). -- Regards Albert Brandl Weiermayer Solutions GmbH Abteistraße 12 A-4813 Altmünster phone: +43 (0) 720 70 30 14 fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.c

Re: [Twisted-Python] trial + test-case-mode

2010-06-14 Thread Albert Brandl
Hi, On Sat, Jun 12, 2010 at 12:02:00PM +0200, Laurens Van Houtven wrote: > Does anyone have some magic Elisp to integrate The sources contain an emacs directory; have a look at twisted-dev.el. Regards, Albert ___ Twisted-Python mailing list Twisted-P

Re: [Twisted-Python] twisted.protocols.basic.NetstringReceiver: Some errors are not visible

2010-04-07 Thread Albert Brandl
want to add your request there: http://twistedmatrix.com/trac/ticket/4378 Best regards, Albert -- Albert Brandl Weiermayer Solutions GmbH Abteistraße 12 A-4813 Altmünster phone: +43 (0) 720 70 30 14 fax: +43 (0) 7612 20 3 56 web: http://www.weiermayer.com ___ Twis

Re: [Twisted-Python] [Twisted] #4378: Error handling in NetstringReceiver broken

2010-03-30 Thread Albert Brandl
this would allow to get rid of the check for transport.disconnecting. > 7. In test_receiveTwoNetstrings(self), perhaps the second string should be > different than the first, e.g. "a" and "woo", to catch theoretical bugs > where parser repeatedly spits out first thing

[Twisted-Python] Supported Python versions for Twisted 10.0

2010-03-29 Thread Albert Brandl
s_ data to a generator... ;-). Regards, Albert -- DI Albert Brandl Weiermayer Solutions GmbH | http://www.weiermayer.com 4813 Altmünster | Abteistraße 12 | Austria | Fon: +43(0)720 70 30 14 | Fax: +43 (0) 7612 88081 ___ Twisted-Python mailing list Twisted-Pytho

Re: [Twisted-Python] [twisted-python] a problem about reactor

2010-03-29 Thread Albert Brandl
enough to close the file when it reaches the end of the script. But this never happens when the last statement is reactor.run(). Regards, Albert -- DI Albert Brandl Weiermayer Solutions GmbH | http://www.weiermayer.com 4813 Altmünster | Abteistraße 12 | Austria | Fon: +43(0)720 70 30 14 | F

Re: [Twisted-Python] NetstringReceiver

2010-03-29 Thread Albert Brandl
t exception, which is raised in twisted.protocols.amp.BinaryBoxProtocol when the transport is None. Other options are ConnectionClosed and ConnectionDone (both are not raised directly anywhere), or a new one. Maybe ConnectionLost is the most appropriate one. Best regards, Albert -- DI Albert Brandl Weiermayer Solutions GmbH |

Re: [Twisted-Python] NetstringReceiver

2010-03-26 Thread Albert Brandl
n exception. But I'd prefer to raise an exception that explains what happened at a higher level - that's why I asked if there was some predefined exception that would match this kind of problem. > There are some existing tests for NetstringReceiver in > twisted/test/test_protoco

Re: [Twisted-Python] NetstringReceiver

2010-03-25 Thread Albert Brandl
ng, and this is obviously nonsense. Regards, -- DI Albert Brandl Weiermayer Solutions GmbH 4813 Altmünster | Abteistraße 12 | Austria Fon: +43(0)720 70 30 14 | Fax: +43 (0) 7612 88081 ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http:

[Twisted-Python] NetstringReceiver

2010-03-24 Thread Albert Brandl
started testing the NetstringReceiver by creating a class comment with doctests. When I later grepped the sources, I found some doctests, but there no mention of the doctest module in the test policy document. Would it be better to use the unittest framework for testing the code? Thanks and best