web/views/ajaxcontroller.py
changeset 10662 10942ed172de
parent 10215 96085e379066
child 10729 6ca54ea4ba4d
equal deleted inserted replaced
10661:e6eb0c7c2e98 10662:10942ed172de
    82 
    82 
    83 def optional_kwargs(extraargs):
    83 def optional_kwargs(extraargs):
    84     if extraargs is None:
    84     if extraargs is None:
    85         return {}
    85         return {}
    86     # we receive unicode keys which is not supported by the **syntax
    86     # we receive unicode keys which is not supported by the **syntax
    87     return dict((str(key), value) for key, value in extraargs.iteritems())
    87     return dict((str(key), value) for key, value in extraargs.items())
    88 
    88 
    89 
    89 
    90 class AjaxController(Controller):
    90 class AjaxController(Controller):
    91     """AjaxController handles ajax remote calls from javascript
    91     """AjaxController handles ajax remote calls from javascript
    92 
    92