Changes between Version 2 and Version 3 of JSONRPCServerMiddleware


Ignore:
Timestamp:
Dec 7, 2008, 6:07:37 AM (15 years ago)
Author:
alx3
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JSONRPCServerMiddleware

    v2 v3  
    1 = Django and AJAX =
     1=== Django and AJAX ===
    22This middleware is another attemp to simplify using AJAX with Dajngo based on JSON-RPC specification (http://json-rpc.org/). It inspired by Java Struts2 JSON-plugin by Musachy Barroso (http://cwiki.apache.org/S2PLUGINS/json-plugin.html) and
    33SimpleJSONRPCServer by David McNab (http://code.djangoproject.com/wiki/JSON-RPC).
    4 = Basic configuration =
     4=== Basic configuration ===
    55 * jsonrpcserver.py must be on your PYTHONPATH.
    66 * Put class 'jsonrpcserver.JSONRPCServerMiddleware' to Django middleware list in settings.py:
     
    3232}}}
    3333note: 'myapp.newapp.json_rpc_views' IS NOT A FUNCTION, BUT A MODULE, that contains exposed JSON-RPC functions.
    34 = Optional Django settings =
     34=== Optional Django settings ===
    3535 * JSONRPC_URLPATTERNS_NAME:
    3636    Default value: 'jsonrpc_urlpatterns'.
     
    4646    returning a str() representation of unsupportable python object.
    4747    See implementation of AugmentedJSONEncoder class.
    48 = Usage =
     48=== Usage ===
    4949 * Write exposed function im module, listed in jsonrpc_urlpatterns:
    5050{{{
     
    6666    .addCallback(...);
    6767}}}
    68 = Example =
     68=== Example ===
    6969See example here: http://alx3apps.appspot.com/jsonrpc_example/.
    70 = Other =
     70=== Other ===
    7171Written by alx3 (alx3apps(at)gmail(dot)com).
    7272You can use this code under the terms of BSD licence (like Django project).
Back to Top