From: richard Date: Thu, 5 Sep 2002 23:48:55 +0000 (+0000) Subject: fix to :required X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=393114a07df549a2a7bc51bed49d1e7cef4ca324;p=roundup.git fix to :required git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1075 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index 663f0c7..9fc4371 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -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 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): 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 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): 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