web/views/cwproperties.py
changeset 7868 39a54b88906d
parent 7829 58f696c0f5b3
parent 7855 54283a5b7afc
child 7894 ad0eeb0f7a8d
--- a/web/views/cwproperties.py	Mon Sep 26 18:03:38 2011 +0200
+++ b/web/views/cwproperties.py	Mon Sep 26 19:24:08 2011 +0200
@@ -102,8 +102,7 @@
         cookiename = self._cookie_name(group)
         cookie = cookies.get(cookiename)
         if cookie is None:
-            cookies[cookiename] = default
-            self._cw.set_cookie(cookies, cookiename, maxage=None)
+            self._cw.set_cookie(cookiename, default, maxage=None)
             status = default
         else:
             status = cookie.value