Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Valeriy Pogrebitskiy
fering (it is left up to developer). To enforce that line (string) oriented communication works correctly - you might want to refactor to use twisted.protocols.basic.LineReceiver instead. Kind regards, Valeriy Pogrebitskiy Email: vpogr...@iname.com -Original Message- Fro

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Valeriy Pogrebitskiy
allowing you to test client's or server's behavior, or track progress Kind regards, Valeriy Pogrebitskiy Email: vpogr...@iname.com -Original Message- From: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of naman

Re: [Twisted-Python] How to chain deferred calls

2009-10-22 Thread Valeriy Pogrebitskiy
by a method that returns deferred)... Kind regards, Valeriy Pogrebitskiy Email: vpogr...@iname.com -Original Message- From: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of vit...@synapticvision.com Sent: Thursday, October 22, 2

Re: [Twisted-Python] How to chain deferred calls

2009-10-22 Thread Valeriy Pogrebitskiy
I am confused... If an exception is being raised in adc1() - errback is supposed to be called and passed your Exception instance (wrapped up as an instance of twisted.python.failure.Failure). Kind regards, Valeriy Pogrebitskiy Email: vpogr...@iname.com -Original Message- From

Re: [Twisted-Python] How to chain deferred calls

2009-10-21 Thread Valeriy Pogrebitskiy
Add another .addErrback() directly after adc1() - to handle that specific exception... Kind regards, Valeriy Pogrebitskiy vpogr...@verizon.net On Oct 21, 2009, at 4:12 PM, vit...@synapticvision.com wrote: > hi, > how can I chain in defer methods that could raise exception while >

Re: [Twisted-Python] Twisted-Python Digest, Vol 67, Issue 22

2009-10-13 Thread Valeriy Pogrebitskiy
Dirk, I hope you are using 'twisted.trial.unittest' instead of standard Python's 'unittest'... Right? In case this is not so - update your test script to use Twisted's unittest module. Kind regards, Valeriy Pogrebitskiy vpogr...@verizon.net On Oct 13,

Re: [Twisted-Python] Twisted Python vs. "Blocking" Python: Weird performance on small operations.

2009-10-13 Thread Valeriy Pogrebitskiy
anInteger) @deferred def bin2intAsync(aBin): #Unpacks a bytestring into an integer return struct.unpack("i", aBin)[0] Kind regards, Valeriy Pogrebitskiy vpogr...@verizon.net On Oct 13, 2009, at 9:18 AM, Dirk Moors wrote: Hello Everyone! My name is Dirk Moors, and sin

Re: [Twisted-Python] Use of 'twistd' utility with command-line arguments

2009-10-02 Thread Valeriy Pogrebitskiy
to work around this problem. I suggest that Twisted dev. team looks into implementing this... Kind regards, Valeriy Pogrebitskiy vpogr...@verizon.net On Oct 1, 2009, at 4:55 PM, Glyph Lefkowitz wrote: On Thu, Oct 1, 2009 at 2:17 PM, Valeriy Pogrebitskiy > wrote: I came across some probl

[Twisted-Python] Use of 'twistd' utility with command-line arguments

2009-10-01 Thread Valeriy Pogrebitskiy
> python [argList] > twistd -y [argList] Second question to Twisted development team: how such an important case has slipped attention? I suggest this to be added to bug fix requests, with high priority. Kind regards, Valeriy Pogrebitskiy vpogr...@verizon.net __

[Twisted-Python] Twisted Trial (unittest) and Ant

2009-09-16 Thread Valeriy Pogrebitskiy
I am trying to implement Ant build.xml script that would include testing Python code using twisted.trial.unittest. When using available pyAntTasks ( target), I am getting all sorts of errors - even though test scripts complete successfully using Python directly, or using Eclipse's' Run As -