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)
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:
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
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
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
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-
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: +
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
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
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
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
__
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
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
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
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
__
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:
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: +
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:
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
.
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
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
-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,
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
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
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
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
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
,
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
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
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
__
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
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
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
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
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
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
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 |
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
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:
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
40 matches
Mail list logo