[Zope-dev] Re: Five: Feature freeze and release fest tomorrow

Daniel Nouri daniel.nouri at gmail.com
Tue May 2 13:42:42 EDT 2006


Can we put the one line testbrowser patch in, please?  Without it,
testbrowser never gets to see Cookie headers, which I consider quite a
PIA.  Currently, I'm including the patched version of Five's testbrowser
module in a test for the PasswordResetTool Product here:
http://dev.plone.org/collective/browser/PasswordResetTool/trunk/tests/utils/testbrowser.py

The patch:

Index: testbrowser.py
===================================================================
--- testbrowser.py      (revision 66810)
+++ testbrowser.py      (working copy)
@@ -35,6 +35,7 @@
         headers.sort()
         headers.insert(0, ('Status', "%s %s" % (status, reason)))
         headers = '\r\n'.join('%s: %s' % h for h in headers)
+        headers += '\r\n' + '\r\n'.join(real_response._cookie_list())
         content = real_response.body
         return testing.PublisherResponse(content, headers, status, reason)





Daniel



More information about the Zope-Dev mailing list