Re: [Twisted-Python] txjsonrpc

2013-02-01 Thread Matthew Williams
Hi Duncan, Thanks for the response. I'm certainly open to suggestions otherwise, but it seems patching txjsonrpc to do the following would be rather involved. I started working on some of this and realized maintaining backwards compatibility might be very difficult: * Persistent TCP connections

Re: [Twisted-Python] txjsonrpc

2013-02-01 Thread Duncan McGreggor
On Thu, Jan 31, 2013 at 7:43 AM, Matthew Williams wrote: > I have a couple questions regarding txjsonrpc > (https://github.com/oubiwann/txjsonrpc/) in connection with the recent > addition of version 2.0 support. > > * How complete is the version 2.0 support? I had actually tried some years > ago

Re: [Twisted-Python] txjsonrpc

2013-02-01 Thread Matthew Williams
Thanks Julian, I actually have a similar project ( https://github.com/mgwilliams/txJsonRpc-Netstrings), but would prefer to use the "mainstream" project. At the moment I'm working out whether that's possible for our needs. Matthew On Fri, Feb 1, 2013 at 12:14 PM, Julian Berman wrote: > Hi. FWI

Re: [Twisted-Python] txjsonrpc

2013-02-01 Thread Julian Berman
Hi. FWIW I had a project that used JSONRPC and decided to use v2 so I wrote https://github.com/Julian/txjsonrpc-tcp (Which I couldn't think up a less ambiguous name for at the time unfortunately) My requirements were kinda simple and Twisted had evolved a bit since when oubiwann wrote txjsonrpc s

Re: [Twisted-Python] txjsonrpc

2013-01-31 Thread Matthew Williams
It appears that even 1.0 spec (http://json-rpc.org/wiki/specification) allows for non-array result values. Maybe there was a confusion with the fact that in v1 only a list is valid for the request parameters. On Thu, Jan 31, 2013 at 2:04 PM, Matthew Williams wrote: > In that case, should there be

Re: [Twisted-Python] txjsonrpc

2013-01-31 Thread Matthew Williams
In that case, should there be a patch that skips that for v2? Or perhaps just raise an error for versions < v2 if the function does not return a list? Of course, this wouldn't be backwards compatible which might be problematic. On Thu, Jan 31, 2013 at 1:45 PM, Laurens Van Houtven <_...@lvh.cc> wro

Re: [Twisted-Python] txjsonrpc

2013-01-31 Thread Laurens Van Houtven
On Thu, Jan 31, 2013 at 4:43 PM, Matthew Williams wrote: > I have a couple questions regarding txjsonrpc ( > https://github.com/oubiwann/txjsonrpc/) in connection with the recent > addition of version 2.0 support. > > * How complete is the version 2.0 support? I had actually tried some years > ago

[Twisted-Python] txjsonrpc

2013-01-31 Thread Matthew Williams
I have a couple questions regarding txjsonrpc ( https://github.com/oubiwann/txjsonrpc/) in connection with the recent addition of version 2.0 support. * How complete is the version 2.0 support? I had actually tried some years ago to add v2.0 support, but gave up due to some issues I no longer full