Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Glyph Lefkowitz
On Nov 16, 2009, at 5:37 PM, Kevin Horn wrote: > On Mon, Nov 16, 2009 at 3:11 PM, wrote: > On 06:09 pm, kevin.h...@gmail.com wrote: > >> > >er, sorry, forgot to post the link... > > > >here it is: > >http://twistedsphinx.funsize.net/ > > Thanks. It's good to be able to see (at least an early d

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread lasizoillo
2009/11/11 Kevin Horn : > > I have written up a proposal here: > > http://twistedsphinx.funsize.net/proposal.html > In this proposal you say: Development Work * fabric fabfile for automation of docs workflow Future Work * This page has some stuff on using cog in RestructuredText comments to ge

Re: [Twisted-Python] Launching Twisted client using Process call

2009-11-17 Thread David Ripton
On 2009.11.17 07:07:50 +0100, naman jain wrote: > I try to launch it as a Process: > foo = Process( target=twisted_client.main, args=(q,uid,)) > foo.start() > foo.join() > status = q.get() > Launching the client in this manner, is not showing reliable results. You didn't give a long enoug

Re: [Twisted-Python] Telnet server: localecho "ON" for linux client but not for windows client

2009-11-17 Thread James Tanis
I haven't worked with the telnet protocol since the 1.x series honestly and I remember having to add a good bit of code to support all the control functions in order to get things working as nicely as I wanted. That aside, echo (or lack thereof) did work fine, but "will" will not force a client

Re: [Twisted-Python] Telnet server: localecho "ON" for linux client but not for windows client

2009-11-17 Thread James Tanis
I looked at your code a bit more, read below. > > > > On Nov 16, 2009, at 9:14 AM, filoufake-pyt...@yahoo.fr wrote: > >> >>raise NotImplementedError("Not supported by this realm") >> >> class MyTelnet(StatefulTelnetProtocol): >> def telnet_Command(self, line): >>print "line receive

[Twisted-Python] tee method in twisted.internet.defer.py ?

2009-11-17 Thread Terry Jones
Is there a reason why the Deferred class doesn't have a tee method like the following (untested)? def tee(self, d): def _cb(arg): d.callback(arg) return arg def _eb(arg): d.errback(arg) return arg return self.addCallback

[Twisted-Python] Multiple deferreds that depend on each other

2009-11-17 Thread Landreville
I know people ask about deferreds all the time (and i've read through a bunch of those questions), but there is still one thing I don't quite grasp. If I want to do a number of actions in a row that each return a deferred but depend on eachother, do I need to nest those callbacks? Ie if i want to

Re: [Twisted-Python] tee method in twisted.internet.defer.py ?

2009-11-17 Thread exarkun
On 03:33 pm, te...@jon.es wrote: >Is there a reason why the Deferred class doesn't have a tee method like >the >following (untested)? > >def tee(self, d): >def _cb(arg): >d.callback(arg) >return arg > >def _eb(arg): >d.errback(arg) >

Re: [Twisted-Python] Multiple deferreds that depend on each other

2009-11-17 Thread Reza Lotun
Hi Landreville, > If I want to do a number of actions in a row that each return a deferred but > depend on eachother, do I need to nest those callbacks? > Ie if i want to: > 1. Call database function using adbabi > 2. Call xmlrpc method using result from 1 > 3. Call database using result from 2 >

Re: [Twisted-Python] tee method in twisted.internet.defer.py ?

2009-11-17 Thread Terry Jones
> "JP" == exarkun writes: JP> We implemented this 5 or 6 times at Divmod. I'm not surprised. Given that I'd have thought it would've made it into defer.py at some point. JP> The most recent incarnation looks like this: JP> http://divmod.org/trac/browser/trunk/Epsilon/epsilon/pending.py Tha

Re: [Twisted-Python] Multiple deferreds that depend on each other

2009-11-17 Thread Landreville
Oh I like the look of the inlineCallbacks. Is there a way that I can still use inspect.getargspec to retrieve the arg names of my original method, as opposed to the generator returned by inlineCallbacks. I noticed it copies the __doc__ over, but is there an attribute where I can still inspect my o

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Kevin Horn
On Tue, Nov 17, 2009 at 2:13 AM, Glyph Lefkowitz wrote: > > On Nov 16, 2009, at 5:37 PM, Kevin Horn wrote: > > On Mon, Nov 16, 2009 at 3:11 PM, wrote: > >> On 06:09 pm, kevin.h...@gmail.com wrote: >> >> >> >er, sorry, forgot to post the link... >> > >> >here it is: >> >http://twistedsphinx.funsiz

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Kevin Horn
On Tue, Nov 17, 2009 at 4:00 AM, lasizoillo wrote: > 2009/11/11 Kevin Horn : > > > > I have written up a proposal here: > > > > http://twistedsphinx.funsize.net/proposal.html > > > > In this proposal you say: > > Development Work > * fabric fabfile for automation of docs workflow > > Future Work

Re: [Twisted-Python] tee method in twisted.internet.defer.py ?

2009-11-17 Thread Kevin Horn
On Tue, Nov 17, 2009 at 10:27 AM, Terry Jones wrote: > > "JP" == exarkun writes: > > I don't need it committed, I was just wondering why something like that > doesn't already exist. Re patterns: it would be great to have a series of > diagrams illustrating situations one might want to deal

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread exarkun
On 06:00 pm, kevin.h...@gmail.com wrote: >On Tue, Nov 17, 2009 at 4:00 AM, lasizoillo >wrote: >>2009/11/11 Kevin Horn : >> > >> > I have written up a proposal here: >> > >> > http://twistedsphinx.funsize.net/proposal.html >> > >> >>In this proposal you say: >> >>Development Work >> * fabric fabf

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Kevin Horn
On Tue, Nov 17, 2009 at 1:16 PM, wrote: > On 06:00 pm, kevin.h...@gmail.com wrote: > >On Tue, Nov 17, 2009 at 4:00 AM, lasizoillo > >wrote: > >>2009/11/11 Kevin Horn : > >> > > >> > I have written up a proposal here: > >> > > >> > http://twistedsphinx.funsize.net/proposal.html > >> > > >> > >>In

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Laurens Van Houtven
> Actually, I think that this particular often-touted advantage is a wash. >  The "approachableness" of ReST is questionable, especially once you get > into the weird corner cases where the syntax just completely falls apart and > turns into an incomprehensible line-noise jumble.  I mean, the synta

[Twisted-Python] server push data to client

2009-11-17 Thread vitaly
hi, what could be the way(Producer/Consumer?) and simple,basic example to push data(~10Kb) from Twisted based server(that listening for incoming requests) into client side(for example FLEX) not as a response to the incoming request, but occasionally, triggered by server side??? In tradition

[Twisted-Python] pb, viewable, avatars: The example chatserver is buggy

2009-11-17 Thread Wolfgang Rohdewald
I tried this example: http://twistedmatrix.com/projects/core/documentation/howto/pb-cred.html#auto18 (scripts chatserver.py and chatclient.py) but they do not work with python 2.6.4 (twisted 8.2.0). Before the client can do much, the server function User.detached is called resulting in an except

Re: [Twisted-Python] server push data to client

2009-11-17 Thread lasizoillo
2009/11/17 : > hi, > what could be the way(Producer/Consumer?) and simple,basic example to > push data(~10Kb) from Twisted based server(that listening for incoming > requests) into  client side(for example FLEX) not as a response to the > incoming request, but occasionally, triggered by server sid

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Glyph Lefkowitz
On Nov 17, 2009, at 3:58 PM, Laurens Van Houtven wrote: > Not to detract from any of the points you've made regarding reST's > table syntax, but I've found it to be quite livable-with using > table.el. Emacs users might be interested: > http://table.sourceforge.net/ Wow. Uh, erm. This does detr