# HG changeset patch # User Aurelien Campeas # Date 1316678660 -7200 # Node ID 18ce47d4a17fbd9ad3679cab499c07a4d9eaf5a0 # Parent 5f145462e0414d5c98974997aebb6b786ecac398 [jsoncontroller] deprecate the now unused js_set_cookie (closes #1944810) diff -r 5f145462e041 -r 18ce47d4a17f web/views/basecontrollers.py --- 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