--- a/web/__init__.py Thu May 14 10:13:59 2009 +0200
+++ b/web/__init__.py Thu May 14 10:24:56 2009 +0200
@@ -13,6 +13,8 @@
from datetime import datetime, date, timedelta
from simplejson import dumps
+from logilab.common.deprecation import obsolete
+
from cubicweb.common.uilib import urlquote
from cubicweb.web._exceptions import *
@@ -62,6 +64,7 @@
return json_dumps(function(*args, **kwargs))
return newfunc
+@obsolete('use req.build_ajax_replace_url() instead')
def ajax_replace_url(nodeid, rql, vid=None, swap=False, **extraparams):
"""builds a replacePageChunk-like url
>>> ajax_replace_url('foo', 'Person P')