web/views/cwproperties.py
branchstable
changeset 7855 54283a5b7afc
parent 7805 7111bb64b58f
child 7868 39a54b88906d
child 7879 9aae456abab5
--- a/web/views/cwproperties.py	Fri Sep 23 12:17:12 2011 +0200
+++ b/web/views/cwproperties.py	Fri Sep 23 12:16:29 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