Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 1056:1c2a2ecc1b03
fix to :required
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 05 Sep 2002 23:48:55 +0000 |
| parents | cf72eae57a2c |
| children | a55ef5a98fd3 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Thu Sep 05 23:39:14 2002 +0000 +++ b/roundup/cgi/client.py Thu Sep 05 23:48:55 2002 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.15 2002-09-05 23:39:12 richard Exp $ +# $Id: client.py,v 1.16 2002-09-05 23:48:55 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -1052,6 +1052,7 @@ required = [] if form.has_key(':required'): value = form[':required'] + print 'required', value if isinstance(value, type([])): required = [i.value.strip() for i in value] else: @@ -1078,8 +1079,8 @@ value = value.value.strip() if isinstance(proptype, hyperdb.String): - pass - value = form[key].value.strip() + if not value: + continue elif isinstance(proptype, hyperdb.Password): if not value: # ignore empty password values
