Code

handle all-whitespace multilink values in forms (sf bug 663855)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 8 Jan 2003 04:39:36 +0000 (04:39 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 8 Jan 2003 04:39:36 +0000 (04:39 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1424 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/client.py

index cd85e6352fc0661d9bb32c75c251ad331c4cb512..da91444bb89afd4c3b172ec9e9fae73305b8e8d0 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.64 2003-01-08 04:33:56 richard Exp $
+# $Id: client.py,v 1.65 2003-01-08 04:39:36 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -1272,7 +1272,7 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')):
             link = proptype.classname
             l = []
             for entry in value:
-                if entry == '': continue
+                if not entry: continue
                 if not num_re.match(entry):
                     try:
                         entry = db.classes[link].lookup(entry)