Roundup Tracker - Issues

Message1390

Author njs
Recipients
Date 2004-07-21.02:24:32
Message-id
In-reply-to
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
History
Date User Action Args
2009-02-03 14:20:52adminlinkissue994957 messages
2009-02-03 14:20:52admincreate