web/views/basecontrollers.py
changeset 4436 294e084f1263
parent 4252 6c4f109c2b03
parent 4420 a9a8628a1a87
child 4466 8b0ca7904820
--- a/web/views/basecontrollers.py	Tue Feb 02 18:24:45 2010 +0100
+++ b/web/views/basecontrollers.py	Wed Feb 03 14:46:32 2010 +0100
@@ -487,6 +487,7 @@
             cookies[statename] = ';'.join(marked)
             self._cw.set_cookie(cookies, statename)
 
+    @jsonize
     def js_set_cookie(self, cookiename, cookievalue):
         # XXX we should consider jQuery.Cookie
         cookiename, cookievalue = str(cookiename), str(cookievalue)