[Zope-Checkins] CVS: Zope/lib/python/ZPublisher -
HTTPResponse.py:1.81
Stefan H. Holek
stefan at epy.co.at
Mon Apr 26 06:12:39 EDT 2004
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv15008/lib/python/ZPublisher
Modified Files:
HTTPResponse.py
Log Message:
Collector #1160: HTTPResponse.expireCookie() potentially didn't
when an 'expires' keyword argument was passed.
=== Zope/lib/python/ZPublisher/HTTPResponse.py 1.80 => 1.81 ===
--- Zope/lib/python/ZPublisher/HTTPResponse.py:1.80 Mon Jan 19 14:56:53 2004
+++ Zope/lib/python/ZPublisher/HTTPResponse.py Mon Apr 26 06:12:08 2004
@@ -500,10 +500,10 @@
'''
name = str(name)
- dict = {'max_age':0, 'expires':'Wed, 31-Dec-97 23:59:59 GMT'}
- for k, v in kw.items():
- dict[k] = v
- apply(HTTPResponse.setCookie, (self, name, 'deleted'), dict)
+ d = kw.copy()
+ d['max_age'] = 0
+ d['expires'] = 'Wed, 31-Dec-97 23:59:59 GMT'
+ apply(HTTPResponse.setCookie, (self, name, 'deleted'), d)
def setCookie(self,name,value,**kw):
'''\
More information about the Zope-Checkins
mailing list