Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 1326:43e5262dd90c
don't set explicit None Link properties in web create
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Dec 2002 23:39:40 +0000 |
| parents | 80eef084069a |
| children | b4d4770658c1 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Tue Dec 10 23:14:33 2002 +0000 +++ b/roundup/cgi/client.py Tue Dec 10 23:39:40 2002 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.60 2002-12-10 06:01:59 richard Exp $ +# $Id: client.py,v 1.61 2002-12-10 23:39:40 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -1238,6 +1238,9 @@ elif isinstance(proptype, hyperdb.Link): # see if it's the "no selection" choice if value == '-1': + # if we're creating, just don't include this property + if not nodeid: + continue value = None else: # handle key values
