Skip to content

Commit effcf3e

Browse files
author
Richard Jones
committed
Fix ZRoundup to work with Zope 2.8.5 [SF#1806125]
1 parent f4c295e commit effcf3e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Fixed:
1919
- Work around race condition in file storage during transaction commit
2020
(sf #1883580)
2121
- Make user utils JS work with firstname/lastname again (sf #1868323)
22+
- Fix ZRoundup to work with Zope 2.8.5 (sf #1806125)
23+
2224

2325
2007-11-09 1.4.1
2426
Fixed:

frontends/ZRoundup/ZRoundup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1515
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1616
#
17-
# $Id: ZRoundup.py,v 1.22 2006-01-25 03:43:04 richard Exp $
17+
# $Id: ZRoundup.py,v 1.23 2008-02-07 01:03:39 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -67,6 +67,11 @@ def send_header(self, header, value):
6767
def end_headers(self):
6868
# not needed - the RESPONSE object handles this internally on write()
6969
pass
70+
def start_response(self, headers, response):
71+
self.send_response(response)
72+
for key, value in headers:
73+
self.send_header(key, value)
74+
self.end_headers()
7075

7176
class FormItem:
7277
'''Make a Zope form item look like a cgi.py one
@@ -89,6 +94,8 @@ def __getitem__(self, item):
8994
else:
9095
entry = FormItem(entry)
9196
return entry
97+
def __iter__(self):
98+
return iter(self.__form)
9299
def getvalue(self, key, default=None):
93100
if self.__form.has_key(key):
94101
return self.__form[key]

0 commit comments

Comments
 (0)