371
|
1 |
These classes are intended for use server-side.
|
|
2 |
|
|
3 |
e.g. in a django view.py :
|
|
4 |
|
|
5 |
from pyjs.jsonrpc.django import JSONService, jsonremote
|
|
6 |
|
|
7 |
jsonservice = JSONRPCService()
|
|
8 |
|
|
9 |
@jsonremote(jsonservice)
|
|
10 |
def test(request, echo_param):
|
|
11 |
return "echoing the param back: %s" % echo_param
|
|
12 |
|