Re: [Twisted-Python] Another approach to allowing __init__ to work with Deferreds

2009-05-12 Thread Terry Jones
Hi again Drew I realized I could have added another reason why I like my approach (for my current situation): I'm changing an existing (i.e., deployed) class so that its __init__ calls something returning a deferred which some instance methods of my class rely on having fired. I already have othe

[Twisted-Python] Consistent interfaces to asynchronous partially-available services using Deferreds and state machines (was Re: Another approach to allowing __init__ to work with Deferreds)

2009-05-12 Thread glyph
On 11 May, 04:19 pm, terry.jo...@gmail.com wrote: >I posted to this list back in Nov 2008 with subject: >A Python metaclass for Twisted allowing __init__ to return a Deferred Let me try rephrasing your use-case here, for two reasons: one, I want to make sure I fully understand it, and two, I fee

Re: [Twisted-Python] Consistent interfaces to asynchronous partially-available services using Deferreds and state machines (was Re: Another approach to allowing __init__ to work with Deferreds)

2009-05-12 Thread Terry Jones
Hi Glyph > "glyph" == glyph writes: > On 11 May, 04:19 pm, terry.jo...@gmail.com wrote: > > >I posted to this list back in Nov 2008 with subject: > >A Python metaclass for Twisted allowing __init__ to return a Deferred > > Let me try rephrasing your use-case here, for two reasons: one, I w

Re: [Twisted-Python] Consistent interfaces to asynchronous partially-available services using Deferreds and state machines (was Re: Another approach to allowing __init__ to work with Deferreds)

2009-05-12 Thread Phil Christensen
On May 12, 2009, at 7:39 AM, Terry Jones wrote: >> Just as a point of convenience, I would have automatically >> determined this >> list of method names by using a decorator or something. Having it >> as a >> static list in the method invocation seems to me like it would be >> very easy >> t

Re: [Twisted-Python] Consistent interfaces to asynchronous partially-available services using Deferreds and state machines (was Re: Another approach to allowing __init__ to work with Deferreds)

2009-05-12 Thread Phil Christensen
On May 12, 2009, at 10:47 AM, Phil Christensen wrote: I don't know if I agree with the need for such a feature (that is, deferred __init__ usage), but it was a very interesting coding challenge I wanted to take a whack at. I *think* I might have found a solution, but I don't know if it falls unde

[Twisted-Python] installation error

2009-05-12 Thread Alec Matusis
Installing 8.2.0: creating /web20/encap/python-2.4.4/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-li nux-x86_64.egg Extracting Twisted-8.2.0-py2.4-linux-x86_64.egg to /web20/encap/python-2.4.4/lib/python2.4/site-packages File "/web20/encap/python-2.4.4/lib/python2.4/site-packages/Twisted

Re: [Twisted-Python] installation error

2009-05-12 Thread Thijs Triemstra | Collab
Hi, this is a known issue and has been reported in this ticket: http://twistedmatrix.com/trac/ticket/3243 And apparently it should be fixed once this ticket is fixed: http://twistedmatrix.com/trac/ticket/1696 Cheers, Thijs On 13 May 2009, at 01:32, Alec Matusis wrote: Installing 8.2.0: c

Re: [Twisted-Python] installation error

2009-05-12 Thread Alec Matusis
Sorry never mind: I found that there’s a ticket for it, and downloaded a patch from: http://twistedmatrix.com/trac/attachment/ticket/3578/compile_error_avoid.pat ch From: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of Alec Matusis Sent: Tue

[Twisted-Python] can't get a simple client/server example to work!

2009-05-12 Thread bbxx789_0...@yahoo.com
Here is the server code:-from twisted.internet.protocol import Protocol, Factoryfrom twisted.internet import reactorimport sys class MyServer(Protocol):    def connectionMade(self):         self.transport.write("Hello") factory = Factory()factory.protocol =  MyServer reactor.listenTCP(