[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - http.py:1.9

Steve Alexander steve@cat-box.net
Sun, 2 Mar 2003 13:09:34 -0500


Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv8037/src/zope/publisher/interfaces

Modified Files:
	http.py 
Log Message:
A keyword argument value of None when setting a cookie causes that
keyword argument to be ignored. This is useful when you have a case
where you sometimes want to set that value, and sometimes do not.

Made the lifespan of cookies in the session cookie service come from
an instance variable, rather than being hard-coded.


=== Zope3/src/zope/publisher/interfaces/http.py 1.8 => 1.9 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.8	Fri Feb 28 17:56:03 2003
+++ Zope3/src/zope/publisher/interfaces/http.py	Sun Mar  2 13:09:02 2003
@@ -288,6 +288,7 @@
         to be specified - this path must exactly match the path given
         when creating the cookie. The path can be specified as a keyword
         argument.
+        If the value of a keyword argument is None, it will be ignored.
         """
 
     def setCookie(name, value, **kw):
@@ -297,6 +298,7 @@
         cookie-enabled browsers with a key "name" and value
         "value". This overwrites any previously set value for the
         cookie in the Response object.
+        If the value of a keyword argument is None, it will be ignored.
         """
 
     def getCookie(name, default=None):