web/__init__.py
changeset 2788 8d3dbe577d3a
parent 2613 5e19c2bb370e
child 2808 497424219fb0
equal deleted inserted replaced
2787:ece5bbed3cd2 2788:8d3dbe577d3a
    63 def jsonize(function):
    63 def jsonize(function):
    64     def newfunc(*args, **kwargs):
    64     def newfunc(*args, **kwargs):
    65         return json_dumps(function(*args, **kwargs))
    65         return json_dumps(function(*args, **kwargs))
    66     return newfunc
    66     return newfunc
    67 
    67 
    68 @deprecated('use req.build_ajax_replace_url() instead')
    68 @deprecated('[3.4] use req.build_ajax_replace_url() instead')
    69 def ajax_replace_url(nodeid, rql, vid=None, swap=False, **extraparams):
    69 def ajax_replace_url(nodeid, rql, vid=None, swap=False, **extraparams):
    70     """builds a replacePageChunk-like url
    70     """builds a replacePageChunk-like url
    71     >>> ajax_replace_url('foo', 'Person P')
    71     >>> ajax_replace_url('foo', 'Person P')
    72     "javascript: replacePageChunk('foo', 'Person%20P');"
    72     "javascript: replacePageChunk('foo', 'Person%20P');"
    73     >>> ajax_replace_url('foo', 'Person P', 'oneline')
    73     >>> ajax_replace_url('foo', 'Person P', 'oneline')