Code

allow unsetting of date/interval
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 28 Nov 2002 07:08:39 +0000 (07:08 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 28 Nov 2002 07:08:39 +0000 (07:08 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1389 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/client.py

index 1a301fc105e0a33f7c1788e906cb58babe16c359..77e625d68b080cc32d9944ea4d66c2fc14eff76e 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.57 2002-11-28 07:02:48 richard Exp $
+# $Id: client.py,v 1.58 2002-11-28 07:08:39 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -1220,12 +1220,12 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')):
             if value:
                 value = date.Date(value)
             else:
-                continue
+                value = None
         elif isinstance(proptype, hyperdb.Interval):
             if value:
                 value = date.Interval(value)
             else:
-                continue
+                value = None
         elif isinstance(proptype, hyperdb.Link):
             # see if it's the "no selection" choice
             if value == '-1':