[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-24 Thread Daniel Gonzalez
Mmm, thanks. I have not taken a look at that yet. I will. Nevertheless, I like the idea of having an integrated client to handle all kind of requests (including jsonrpc), which makes it easier for me for statistics and performance gathering. On Monday, December 24, 2012 6:44:59 AM UTC+1,

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-24 Thread Massimo Di Pierro
Before we look at implementation. Could you provide an example of you plan to use it. I mean, programmatically, how would you use it? On Monday, 24 December 2012 07:41:18 UTC-6, Daniel Gonzalez wrote: Mmm, thanks. I have not taken a look at that yet. I will. Nevertheless, I like the idea of

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-23 Thread Massimo Di Pierro
Hello Daniel, getting back at this. Why use webclient for this instead of using gluon/contrib/simplejsonrpc.py? its seems to me it does not belong there. On Monday, 17 December 2012 14:01:18 UTC-6, Daniel Gonzalez wrote: I have slightly modified the WebClient to support jsonrpc. I am not

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-18 Thread Daniel Gonzalez
Indeed Massimo, that is the file. Some comments: - I am forcing Content-Type to 'application/json-rpc' in WebClient.post - The data must be already json encoded - The opener.addheaders is still used, but since I am using a urllib2.Request (to *really* force the Content-Type, which

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-18 Thread Massimo Di Pierro
I opened an issue about this: http://code.google.com/p/web2py/issues/detail?id=1233thanks=1233ts=1355860665 On Tuesday, 18 December 2012 03:36:55 UTC-6, Daniel Gonzalez wrote: Indeed Massimo, that is the file. Some comments: - I am forcing Content-Type to 'application/json-rpc' in

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-17 Thread Daniel Gonzalez
I have slightly modified the WebClient to support jsonrpc. I am not sure everything is correctly covered, but it is suiting my needs. In case you are interested, you can see the changes here: https://github.com/gonvaled/web2py/tree/webclient_add_jsonrpc The biggest problem I had was that

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-17 Thread Massimo Di Pierro
you point me to the file? Is it this one? https://github.com/gonvaled/web2py/blob/webclient_add_jsonrpc/gluon/contrib/webclient.py On Monday, 17 December 2012 14:01:18 UTC-6, Daniel Gonzalez wrote: I have slightly modified the WebClient to support jsonrpc. I am not sure everything is