equal
deleted
inserted
replaced
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') |