You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using DojoToolkit we can have things like :
http://.../jsonrpc/app.trimTails?{"id":"0", "method":"app.trimTails", "params":{"nom":"iuhoi"}, "jsonrpc":"2.0"}
Like it does not work with django-json-rpc I have modified the validate_get method of site.py in my sources as :
if request.method == 'GET':
method = unicode(method)
if method in self.urls and getattr(self.urls[method], 'json_safe', False):
#### sd 2010/03/31 ## BEGIN ##
params = request.GET.lists()
if len(params) == 1 and len(params[0]) == 2:
k = params[0][0]
if k[0] == '{':
try:
D = loads(k)
return True, D
except:
pass
D = {
'params': encode_get_params(params),
# 'params': encode_get_params(request.GET.lists()),
#### modif sd ## END ##
'method': method,
'id': 'jsonrpc',
'version': '1.1'
}
return True, D
return False, {}
If it can help...
The text was updated successfully, but these errors were encountered:
When using DojoToolkit we can have things like :
http://.../jsonrpc/app.trimTails?{"id":"0", "method":"app.trimTails", "params":{"nom":"iuhoi"}, "jsonrpc":"2.0"}
Like it does not work with django-json-rpc I have modified the validate_get method of site.py in my sources as :
If it can help...
The text was updated successfully, but these errors were encountered: