web/__init__.py
branchtls-sprint
changeset 1801 672acc730ce5
parent 1645 374586978230
child 1977 606923dff11b
--- 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')