equal
deleted
inserted
replaced
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 |