Skip to content

Commit 08e9882

Browse files
author
Richard Jones
committed
merge from maint-0-7
1 parent 3192d0c commit 08e9882

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ Feature:
1818
- added mod_python interface (see installation.txt)
1919

2020

21-
2004-??-?? 0.7.6
21+
2004-??-?? 0.7.7
22+
Fixed:
23+
- ZRoundup's search interface works now (sf bug 994957)
24+
25+
26+
2004-07-21 0.7.6
2227
Fixed:
2328
- rdbms backend full text search failure after import (sf bug 980314)
2429
- rdbms backends not filtering correctly on link=None

frontends/ZRoundup/ZRoundup.py

Lines changed: 24 additions & 3 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.17 2003-11-12 01:00:58 richard Exp $
17+
# $Id: ZRoundup.py,v 1.18 2004-07-21 04:50:40 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -82,12 +82,33 @@ class FormWrapper:
8282
'''
8383
def __init__(self, form):
8484
self.form = form
85+
self.value = []
8586
def __getitem__(self, item):
86-
return FormItem(self.form[item])
87+
for entry in self.value:
88+
if entry.name == item:
89+
return entry
90+
entry = self.form[item]
91+
if isinstance(entry, type([])):
92+
entry = map(FormItem, entry)
93+
else:
94+
entry = FormItem(entry)
95+
return entry
96+
def getvalue(self, key, default=None):
97+
if self.form.has_key(key):
98+
return self.form[key]
99+
else:
100+
return default
87101
def has_key(self, item):
102+
for entry in self.value:
103+
if entry.name == item:
104+
return 1
88105
return self.form.has_key(item)
89106
def keys(self):
90-
return self.form.keys()
107+
l = [e.name for e in self.value]
108+
for name in self.form.keys():
109+
if name not in l:
110+
l.append(name)
111+
return l
91112

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

0 commit comments

Comments
 (0)