[web2py] Re: Custom JSON-RPC error codes

2010-11-14 Thread mdipierro
in trunk. thanks. On Nov 14, 4:42 pm, Matt wrote: > Hi Massimo, > > There's a small bug in this code. > > The line (3491) in Tools.py > >         except Service.JsonRpcException, e: > -->         return return_error(id, e.code, e.info) > > Needs to include the id. As above. > > Cheers, > Matt >

[web2py] Re: Custom JSON-RPC error codes

2010-11-14 Thread Matt
Hi Massimo, There's a small bug in this code. The line (3491) in Tools.py except Service.JsonRpcException, e: --> return return_error(id, e.code, e.info) Needs to include the id. As above. Cheers, Matt On Nov 12, 9:12 am, Matt wrote: > Thanks Massimo :) > > Will check it out.

[web2py] Re: Custom JSON-RPC error codes

2010-11-11 Thread Matt
Thanks Massimo :) Will check it out. Matt > Ok. In trunk. > Please give this a try > > raise service.JsonRpcException(100,"info") > > On Nov 10, 10:07 pm, Matt wrote: > > Hi there, > > > > (This is probably more or a small request that a question.) > > > > The JSON-RPC service by default always

[web2py] Re: Custom JSON-RPC error codes

2010-11-10 Thread mdipierro
Ok. In trunk. Please give this a try raise service.JsonRpcException(100,"info") On Nov 10, 10:07 pm, Matt wrote: > Hi there, > > (This is probably more or a small request that a question.) > > The JSON-RPC service by default always returns error codes of 100. > > Can we possibly have this amende