web/__init__.py
changeset 5713 605f571198eb
parent 5556 9ab2b4c74baf
child 5940 0e3ae19b181a
equal deleted inserted replaced
5712:e136d392bd71 5713:605f571198eb
    74             return json_dumps(value)
    74             return json_dumps(value)
    75         except TypeError:
    75         except TypeError:
    76             return json_dumps(repr(value))
    76             return json_dumps(repr(value))
    77     return newfunc
    77     return newfunc
    78 
    78 
    79 @deprecated('[3.4] use req.build_ajax_replace_url() instead')
    79 @deprecated('[3.4] use req.ajax_replace_url() instead')
    80 def ajax_replace_url(nodeid, rql, vid=None, swap=False, **extraparams):
    80 def ajax_replace_url(nodeid, rql, vid=None, swap=False, **extraparams):
    81     """builds a replacePageChunk-like url
    81     """builds a replacePageChunk-like url
    82     >>> ajax_replace_url('foo', 'Person P')
    82     >>> ajax_replace_url('foo', 'Person P')
    83     "javascript: replacePageChunk('foo', 'Person%20P');"
    83     "javascript: replacePageChunk('foo', 'Person%20P');"
    84     >>> ajax_replace_url('foo', 'Person P', 'oneline')
    84     >>> ajax_replace_url('foo', 'Person P', 'oneline')