web/views/basecontrollers.py
branchstable
changeset 4420 a9a8628a1a87
parent 4212 ab6573088b4a
child 4436 294e084f1263
child 4557 a0571ff0cb5d
equal deleted inserted replaced
4411:d0bde029f625 4420:a9a8628a1a87
   485             else:
   485             else:
   486                 marked.add(nodeeid)
   486                 marked.add(nodeeid)
   487             cookies[statename] = ';'.join(marked)
   487             cookies[statename] = ';'.join(marked)
   488             self.req.set_cookie(cookies, statename)
   488             self.req.set_cookie(cookies, statename)
   489 
   489 
       
   490     @jsonize
   490     def js_set_cookie(self, cookiename, cookievalue):
   491     def js_set_cookie(self, cookiename, cookievalue):
   491         # XXX we should consider jQuery.Cookie
   492         # XXX we should consider jQuery.Cookie
   492         cookiename, cookievalue = str(cookiename), str(cookievalue)
   493         cookiename, cookievalue = str(cookiename), str(cookievalue)
   493         cookies = self.req.get_cookie()
   494         cookies = self.req.get_cookie()
   494         cookies[cookiename] = cookievalue
   495         cookies[cookiename] = cookievalue