Пример #1
0
def ajax_get(function):
    register_function(function.__module__, function.__name__, False)
    return ajax_response(function)
Пример #2
0
def ajax_post(function):
    register_function(function.__module__, function.__name__, True)
    print function.__module__, function.__name__
    return ajax_response(function)