Roundup Tracker - Issues

Issue 1806125

classification
ZRoundup bugs + patch with Zope 2.8.5
Type: Severity: normal
Components: None Versions:
process
Status: closed accepted
:
: : richard
Priority: normal : patch

Created on 2007-10-02 07:21 by anonymous, last changed 2008-02-07 01:03 by richard.

Messages
msg2902 Author: [hidden] (anonymous) Date: 2007-10-02 07:21
Got 2 errors when using roundup with Zope 2.8.5 (didn't test other releases) within 'ZRoundup.py'

The first bug was a missing method 'start_response', which i borrowed from 'roundup_server.py'

The second only appears when there are no items in FormWrapper, so iteration is not handled properly

With the followed patch against 'ZRoundup.py' roundup is now working in Zope2.8.5. I don't know whether this was the correct way to do this ...


70,74d69
<     def start_response(self, headers, response):
<         self.send_response(response)
<         for key, value in headers:
<             self.send_header(key, value)
<         self.end_headers()
97,98d91
<     def __iter__(self):
<         return iter(self.__form)
msg2903 Author: [hidden] (richard) Date: 2008-02-07 01:03
Appled, thanks.
History
Date User Action Args
2007-10-02 07:21:48anonymouscreate