[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/testing/functional.py Darn, this code was more borked than I thought. Second guess the logic and test for a path on the response cookie. This makes the functional tests pass again.

Martijn Pieters mj at zopatista.com
Tue Aug 1 12:57:12 EDT 2006


Log message for revision 69327:
  Darn, this code was more borked than I thought. Second guess the logic and test for a path on the response cookie. This makes the functional tests pass again.

Changed:
  U   Zope3/trunk/src/zope/app/testing/functional.py

-=-
Modified: Zope3/trunk/src/zope/app/testing/functional.py
===================================================================
--- Zope3/trunk/src/zope/app/testing/functional.py	2006-08-01 16:05:25 UTC (rev 69326)
+++ Zope3/trunk/src/zope/app/testing/functional.py	2006-08-01 16:57:11 UTC (rev 69327)
@@ -278,7 +278,7 @@
         for k,v in response._cookies.items():
             k = k.encode('utf8')
             self.cookies[k] = v['value'].encode('utf8')
-            if self.cookies[k].has_key('path'):
+            if v.has_key('path'):
                 self.cookies[k]['path'] = v['path']
 
 



More information about the Zope3-Checkins mailing list