Changes between Version 12 and Version 13 of Jsonrpc


Ignore:
Timestamp:
Jul 20, 2011, 12:52:16 AM (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Jsonrpc

    v12 v13  
    1616
    1717from jsonrpc import JsonRpc, publicmethod
     18from django.core.urlresolvers import reverse
    1819
    1920class MyRpcMethods(object):
     
    4344        ]
    4445
     46     @publicmethod
     47     def sayHello(*args):
     48         return "hello "
     49
     50# set the urls /myapp/rpc/ to this myapp.views.my_rpc_view and give it a name='myapp-rpc'
     51# looks like this url(r'^/myapp/rpc/$', 'myapp.views.my_rpc_view', name='myapp-rpc'),
     52# i cannot use the result give by this example, i use
     53# return HttpResponse(result, mimetype='application/json')
    4554def my_rpc_view(request):
    4655
Back to Top