# HG changeset patch # User Richard Jones # Date 1202346219 0 # Node ID 41d297d7dcec16294e0cd6083e19d5c0ea503996 # Parent 3eb45e7f0d57caaf539e4fe4c6b046ed28e4872a Fix ZRoundup to work with Zope 2.8.5 [SF#1806125] diff -r 3eb45e7f0d57 -r 41d297d7dcec CHANGES.txt --- a/CHANGES.txt Thu Feb 07 01:01:01 2008 +0000 +++ b/CHANGES.txt Thu Feb 07 01:03:39 2008 +0000 @@ -19,6 +19,8 @@ - Work around race condition in file storage during transaction commit (sf #1883580) - Make user utils JS work with firstname/lastname again (sf #1868323) +- Fix ZRoundup to work with Zope 2.8.5 (sf #1806125) + 2007-11-09 1.4.1 Fixed: diff -r 3eb45e7f0d57 -r 41d297d7dcec frontends/ZRoundup/ZRoundup.py --- a/frontends/ZRoundup/ZRoundup.py Thu Feb 07 01:01:01 2008 +0000 +++ b/frontends/ZRoundup/ZRoundup.py Thu Feb 07 01:03:39 2008 +0000 @@ -14,7 +14,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: ZRoundup.py,v 1.22 2006-01-25 03:43:04 richard Exp $ +# $Id: ZRoundup.py,v 1.23 2008-02-07 01:03:39 richard Exp $ # ''' ZRoundup module - exposes the roundup web interface to Zope @@ -67,6 +67,11 @@ def end_headers(self): # not needed - the RESPONSE object handles this internally on write() pass + def start_response(self, headers, response): + self.send_response(response) + for key, value in headers: + self.send_header(key, value) + self.end_headers() class FormItem: '''Make a Zope form item look like a cgi.py one @@ -89,6 +94,8 @@ else: entry = FormItem(entry) return entry + def __iter__(self): + return iter(self.__form) def getvalue(self, key, default=None): if self.__form.has_key(key): return self.__form[key]