Re: [Twisted-Python] Twisted-Python Digest, Vol 63, Issue 7

2009-06-08 Thread Doug Farrell
Terry > Hi Doug > > Sorry if it sounds like I'm being a PITA, but I really recommend > reading > the source code and writing & playing with a tiny example. Also see > http://twistedmatrix.com/documents/8.2.0/api/twisted.internet.task.Loop > ingCall.html > > I suggest this because it's by far the

Re: [Twisted-Python] Twisted Words

2009-06-08 Thread Alex Patino
I am looking for a chat system to add to my Django-based chat site. I don't need something ready-made but I don't want to build it on a framework that is no longer supported. What's the status of the Twisted Words project? Regards, Alex On Mon, Jun 8, 2009 at 11:25 AM, Alex Patino wrote: > I

[Twisted-Python] copy domish element

2009-06-08 Thread Jack Bates
i have a domish element - when i try the following, >>> message = element >>> del message['from'] >>> element['from'] - i get a key error to avoid this key error, i think i want to copy the element, so i can drop the 'from' attribute from one copy without affecting the other? but i didn't find

Re: [Twisted-Python] copy domish element

2009-06-08 Thread Terry Jones
Hi Jack > "Jack" == Jack Bates writes: Jack> i have a domish element - when i try the following, message = element del message['from'] element['from'] Jack> - i get a key error Jack> to avoid this key error, i think i want to copy the element, so i can Jack> drop the 'from'

Re: [Twisted-Python] copy domish element

2009-06-08 Thread Phil Mayers
Jack Bates wrote: > i have a domish element - when i try the following, > message = element del message['from'] element['from'] > > - i get a key error Well, yes. That's how python works ;o) > > to avoid this key error, i think i want to copy the element, so i can > drop the 'fr

Re: [Twisted-Python] inlineCallbacksDecorator

2009-06-08 Thread Drew Smathers
On Sat, Jun 6, 2009 at 9:41 PM, Terry Jones wrote: > I try to avoid using inlineCallbacks. There are two cases where I will > happily use it though: when I write a method that would need more than a > few callback functions, and, more importantly, when the logical flow of a > method is non-trivial

Re: [Twisted-Python] inlineCallbacksDecorator

2009-06-08 Thread Terry Jones
> "Drew" == Drew Smathers writes: Drew> On Sat, Jun 6, 2009 at 9:41 PM, Terry Jones wrote: >> One inconvenience with inlineCallbacks is that you might have some kind >> of processing you want done no matter how the function returns, or >> wherever an error occurs. Two solutions here are 1) to

[Twisted-Python] SerialPort.loseConnection() BUG

2009-06-08 Thread Nestor A. Diaz
Hello, there is a bug on the SerialPort Win32 implementation (don't know about the others), when i call the loseConnection method, it returns: twisted matrix exceptions.AttributeError: 'SerialPort' object has no attribute '_tempDataBuffer' if i wrap the serialport class and put a : se

Re: [Twisted-Python] copy domish element

2009-06-08 Thread Ralph Meijer
On Mon, 2009-06-08 at 18:03 +0100, Phil Mayers wrote: > Jack Bates wrote: > > i have a domish element - when i try the following, > > > message = element > del message['from'] > element['from'] > > > > - i get a key error > > Well, yes. That's how python works ;o) > > > > > to a