Tim Nyborg and GitHub
75491fb273
python3 compatibility for JSONRPCError
...
Trying this again, now that I learned about gluon._compat
2019-08-23 12:25:11 +01:00
mdipierro and GitHub
bf27c8c394
Merge pull request #2048 from timnyborg/patch-3
...
Allow custom json encoder
2018-11-01 08:24:53 -07:00
Tim Nyborg and GitHub
77a5c01ac9
Allow custom json encoder
...
This lets an application use a custom JSONEncoder when making jsonrpc calls (to automatically handle, say, serialization of datetime, or Decimal, or custom classes).
e.g.:
import json, datetime, decimal
class ExtendedEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, datetime.datetime):
return obj.isoformat()
if isinstance(obj, decimal.Decimal):
return str(obj)
return super(ExtendedEncoder, self).default(obj)
api = ServerProxy(address, version='2.0', encoder=ExtendedEncoder)
2018-10-29 15:16:28 +00:00
Tim Nyborg and GitHub
5d9f17d414
correct rendering of jsonrpcerrors
...
Currently, JSONRPCErrors get spit into a console or ticket one line per character (due to the '\n'.join(data) applying to a string). This fixes that issue while preserving new lines for arrays.
2018-10-09 10:51:38 +01:00
Daniel Libonati
ea1d9acfad
Fix #1959
2018-06-30 21:55:16 -03:00
mdipierro
81fa787ec2
fixes #1514 , thanks RekGRpth
2017-06-20 14:59:57 -05:00
ilvalle
4468355d01
fix py3 xmlrpc imports, close #1473
2016-09-25 10:43:42 +02:00
ilvalle
48e10a3793
running libfuturize.fixes.fix_print_with_import
2016-05-30 21:23:40 +02:00
ilvalle
8074927191
running lib2to3.fixes.fix_renames
2016-05-29 08:31:19 +02:00
Leonel Câmara
a9ee9a6b58
remove simplejson
2016-05-11 00:47:23 +01:00
Tim Nyborg
5030d3144f
Update simplejsonrpc.py
...
Default best placed in method signature,
Thanks to cassiobotaro for pointing it out
2015-08-19 11:59:40 +01:00
Tim Nyborg
5ee8c9c930
simplejsonrpc: Fix TypeError when data is none
2015-07-27 12:07:26 +01:00
Tim Richardson
cd15a0f983
better error handling in jsonrpc requests
2014-03-13 07:29:42 +11:00
Tim Richardson
13d66433e7
jsonrpc2 requests need mandatory key/pair jsonrpc:'2.0'
2014-03-12 22:38:29 +11:00
TierraDelFuego
e363ee0994
Change the call to python from /usr/bin/python to /usr/bin/env python so the correct python is called when using virtualenv. Remove the the call if not needed.
2013-01-12 23:34:35 -08:00
mdipierro
6aa5edc7ff
many pep8 improvements
2012-10-19 12:33:53 -05:00
mdipierro
71ec15190b
some pep8 changes (fixed spacing at end)
2012-10-19 10:37:07 -05:00
mdipierro
3a66f5e330
fixed some pep8 stuff
2012-10-19 09:40:17 -05:00
mdipierro
dcce7fc39a
fixed @//// in wiki and pep8 spacing
2012-08-25 11:29:11 -05:00
mdipierro
e76bcf0ea9
removed unwanted whitespaces
2012-08-16 11:56:07 -05:00
Massimo Di Pierro
ba93692ed4
fixed issue 728, bug in languages, thanks pgergo
2012-03-26 11:17:20 -05:00
Massimo DiPierro
a29f189edc
better jsonrpc error handling, thanks Mariano
2012-03-12 15:30:29 -05:00
Massimo Di Pierro
d281acb421
fixws and 'new' button in grid query
2011-12-05 11:39:42 -06:00
Massimo Di Pierro
d421c1321b
initial commit
2011-11-22 23:30:42 -06:00