svgui/pyjs/jsonrpc/django/jsonrpc.py
changeset 1749 d73b64672238
parent 1746 45d6f5fba016
child 1754 63f4af6bf6d9
equal deleted inserted replaced
1748:ba5f64fe0e00 1749:d73b64672238
   205 #
   205 #
   206 # dump jsonservice into urlpatterns to make the two RPC functions,
   206 # dump jsonservice into urlpatterns to make the two RPC functions,
   207 # list_some_model and list_another_model part of the django app:
   207 # list_some_model and list_another_model part of the django app:
   208 #  (r'^service1/$', 'djangoapp.views.jsonservice'),
   208 #  (r'^service1/$', 'djangoapp.views.jsonservice'),
   209 
   209 
       
   210 
   210 from django.core.serializers import serialize
   211 from django.core.serializers import serialize
   211 import datetime
   212 import datetime
   212 from datetime import date
   213 from datetime import date
   213 
   214 
   214 
   215