--- a/web/views/basecontrollers.py Thu Sep 22 10:02:25 2011 +0200
+++ b/web/views/basecontrollers.py Thu Sep 22 10:04:20 2011 +0200
@@ -23,6 +23,7 @@
_ = unicode
from logilab.common.date import strptime
+from logilab.common.deprecation import deprecated
from cubicweb import (NoSelectableObject, ObjectNotFound, ValidationError,
AuthenticationError, typed_eid)
@@ -546,8 +547,8 @@
self._cw.set_cookie(cookies, statename)
@jsonize
+ @deprecated("[3.13] use jQuery.cookie(cookiename, cookievalue, {path: '/'}) in js land instead")
def js_set_cookie(self, cookiename, cookievalue):
- # XXX we should consider jQuery.Cookie
cookiename, cookievalue = str(cookiename), str(cookievalue)
cookies = self._cw.get_cookie()
cookies[cookiename] = cookievalue