Message1390
The ZRoundup frontend defines a class 'FormWrapper',
that takes a Zope form object and attempts to present
an interface that looks like a cgi.py form object.
Understandably, it doesn't attempt to implement the
full multitude of FieldStorage methods. However, the
'getvalue()' method -- which is extremely useful, used
by the 'classic' page.html template, and has no simple
replacement in TAL -- is not implemented. This means,
for instance, that on a classic tracker under ZRoundup,
the 'issue search' page displays a traceback.
Suggested fix:
- add to the FormWrapper class a method:
def getvalue(self, key, default=None):
if self.form.has_key(key):
return self.form[key]
else:
return default |
|
Date |
User |
Action |
Args |
2009-02-03 14:20:52 | admin | link | issue994957 messages |
2009-02-03 14:20:52 | admin | create | |
|