Re: [Twisted-Python] Introducing Frack, a (partial) replacement for Trac

2012-10-04 Thread Allen Short
That's strange. I believe that's due to twistedmatrix.com using PB to connect different web server processes together, not anything directly related to the code in Frack. Try this URL? It's working for me currently. http://twistedmatrix.com/users/frack.twistd/ui/ticket.html?id=1956 _

[Twisted-Python] Introducing Frack, a (partial) replacement for Trac

2012-10-04 Thread Allen Short
Twisted's issue tracker is based on Trac, which has had increasingly bad performance over the years. Also, its code and deployment setup are so bad that everyone who has the ability to improve it has tried as hard as possible to avoid touching it at all. So I started writing a new issue tracker co

Re: [Twisted-Python] AMP WebSockets bridging

2012-06-15 Thread Allen Short
On Fri, Jun 15, 2012 at 2:32 PM, Glyph wrote: > > On Jun 15, 2012, at 10:13 AM, Laurens Van Houtven wrote: > >> Hi, >> >> I'm trying to get browsers to communicate with an AMP API. > > This is also what is doing.  I hope that it > becomes a common enough practice tha

Re: [Twisted-Python] Declaring AMP responders away from

2012-05-16 Thread Allen Short
Have a look at what I did in Frack: http://bazaar.launchpad.net/~washort/frack/trunk/view/head:/frack/wiring.py#L27 http://bazaar.launchpad.net/~washort/frack/trunk/view/head:/frack/responder.py#L85 You can unbundle the locator and dispatcher bits. I only used this for a single separate class, bu

Re: [Twisted-Python] Distributed system programming

2012-03-10 Thread Allen Short
Twisted is a general library for networking -- you can use it to write both servers and clients, usable together in the same process or separately. "Distributed system" is a broad name that covers a lot of different things, so there are several different possible approaches. Here are some general r

Re: [Twisted-Python] Twisted vs jQuery Deferreds (was Re: RPC design questions)

2011-08-25 Thread Allen Short
On Thu, Aug 25, 2011 at 4:29 AM, Tobias Oberstein < tobias.oberst...@tavendo.de> wrote: > I know this is kinda OT for this list, but it could serve Twisted > indirectly: by propagating > it's mature, sane Deferred concept/terminology instead of half-baked, > flawned others. > In some ways the po

Re: [Twisted-Python] Twisted vs jQuery Deferreds (was Re: RPC design questions)

2011-08-24 Thread Allen Short
My understanding (partially aided by this post: http://www.sitepen.com/blog/2010/05/03/robust-promises-with-dojo-deferred-1-5/) is that Dojo provides both twisted-style "addCallback" and CommonJS-style "then" methods. ___ Twisted-Python mailing list Twist

Re: [Twisted-Python] Twisted vs jQuery Deferreds (was Re: RPC design questions)

2011-08-24 Thread Allen Short
No, this is something jQuery and CommonJS got wrong; callbacks don't chain in their implementation. Firing a jQuery promise invokes each callback in order with the same argument. Firing a Deferred in Twisted invokes the first callback then passes its return value as the arg to the next callback, a

Re: [Twisted-Python] running several services from a single app

2011-03-28 Thread Allen Short
On Mon, Mar 28, 2011 at 8:29 AM, Aljoša Mohorović < aljosa.mohoro...@gmail.com> wrote: > is it possible to run several services from a single app? > i currently have a few services/apps and would like to put them all > into a single app so i can use cx_freeze to create a single exe file > for wind

Re: [Twisted-Python] Deferred instance has no attribute '__getitem__' ??????

2010-07-15 Thread Allen Short
> @defer.inlineCallbacks > def round_val(id, value, rule): > """ > Return first element of round_value_and_percent > """ > defer.returnValue(round_value_and_percent(id, value, 0, rule)[0]) > When I do: > result = yield round_val(1, 2, 3) > > I get this: Defe

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread Allen Short
On Fri, May 28, 2010 at 8:46 AM, wrote: > I'm looking for a Twisted based example how > it should be properly done update/delete of global dictionary's > SAME key:value pair from different functions all together. > Or by another words, two functions are trying to update the same > key:value pair

Re: [Twisted-Python] SIP and RTP

2010-01-21 Thread Allen Short
Your best bet is probably going to be looking at the code in Divmod Sine. You can access the code at: http://divmod.org/svn/Divmod/trunk/Sine/ Unfortunately it isn't very polished -- documentation, especially for the user agent pieces, is rather minimal. ___

Re: [Twisted-Python] SIP support

2009-01-15 Thread Allen Short
On Thu, Jan 15, 2009 at 02:07:41PM +, Phil Mayers wrote: > What's the current status of SIP support in twisted? > > I know the support in trunk is older, and there's some newer stuff > (Sine) on divmod.org (see below) but that's seems heavily dependent on > mantissa, and crucially doesn't s