Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 1385:2bd4822f96a6
- more fixes to CGI form handling
- switch metakit to use "compressed" multilink journal change representation
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 15 Jan 2003 22:39:07 +0000 |
| parents | 87143c3d7156 |
| children | 71928bf79302 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Jan 15 22:17:20 2003 +0000 +++ b/roundup/cgi/client.py Wed Jan 15 22:39:07 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.70 2003-01-15 11:14:01 richard Exp $ +# $Id: client.py,v 1.71 2003-01-15 22:39:07 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -1221,9 +1221,10 @@ # does the property exist? if not properties.has_key(propname): - if mlaction == 'remove': - raise ValueError, 'You have submitted a remove action for'\ - ' the property "%s" which doesn\'t exist'%propname + if mlaction != 'set': + raise ValueError, 'You have submitted a %s action for'\ + ' the property "%s" which doesn\'t exist'%(mlaction, + propname) continue proptype = properties[propname] @@ -1281,7 +1282,7 @@ value = None elif isinstance(proptype, hyperdb.Link): # see if it's the "no selection" choice - if value == '-1': + if value == '-1' or not value: # if we're creating, just don't include this property if not nodeid: continue
