Skip to content

Commit 40786bc

Browse files
author
Richard Jones
committed
ZRoundup works again [SF#1263842]
1 parent 62408aa commit 40786bc

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Fixed:
3535
- all backends implement the retired check in getnodeids (sf bug 1290560)
3636
- fix detection of "missing" existing values in CGI form parser (sf bug
3737
1414149)
38+
- ZRoundup works again (sf bug 1263842)
3839

3940

4041
2005-10-07 0.9.0b1

frontends/ZRoundup/ZRoundup.py

Lines changed: 10 additions & 7 deletions
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.21 2005-02-15 00:25:11 richard Exp $
17+
# $Id: ZRoundup.py,v 1.22 2006-01-25 03:43:04 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -81,23 +81,26 @@ class FormWrapper:
8181
'''Make a Zope form dict look like a cgi.py one
8282
'''
8383
def __init__(self, form):
84-
self.form = form
84+
self.__form = form
8585
def __getitem__(self, item):
86-
entry = self.form[item]
86+
entry = self.__form[item]
8787
if isinstance(entry, type([])):
8888
entry = map(FormItem, entry)
8989
else:
9090
entry = FormItem(entry)
9191
return entry
9292
def getvalue(self, key, default=None):
93-
if self.form.has_key(key):
94-
return self.form[key]
93+
if self.__form.has_key(key):
94+
return self.__form[key]
9595
else:
9696
return default
9797
def has_key(self, item):
98-
return self.form.has_key(item)
98+
return self.__form.has_key(item)
9999
def keys(self):
100-
return self.form.keys()
100+
return self.__form.keys()
101+
102+
def __repr__(self):
103+
return '<ZRoundup.FormWrapper %r>'%self.__form
101104

102105
class ZRoundup(Item, PropertyManager, Implicit, Persistent):
103106
'''An instance of this class provides an interface between Zope and

roundup/cgi/templating.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,9 @@ class HTMLRequest(HTMLInputMixin):
20072007
- "filterspec" values to filter the index on
20082008
- "search_text" text to perform a full-text search on for an index
20092009
'''
2010+
def __repr__(self):
2011+
return '<HTMLRequest %r>'%self.form
2012+
20102013
def __init__(self, client):
20112014
# _client is needed by HTMLInputMixin
20122015
self._client = self.client = client

0 commit comments

Comments
 (0)