changeset 3962:41d297d7dcec

Fix ZRoundup to work with Zope 2.8.5 [SF#1806125]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 07 Feb 2008 01:03:39 +0000
parents 3eb45e7f0d57
children 3230f9c88086
files CHANGES.txt frontends/ZRoundup/ZRoundup.py
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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:
--- 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]

Roundup Issue Tracker: http://roundup-tracker.org/