summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73ed245)
raw | patch | inline | side by side (parent: 73ed245)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 21 Nov 2001 03:21:13 +0000 (03:21 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 21 Nov 2001 03:21:13 +0000 (03:21 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@407 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py | patch | blob | history |
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index ba3dc94fdb5a548e748df6e1ee76d70babadd661..a17e05e90b81227c1d8050c4f789b792a81153af 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.58 2001-11-21 03:11:28 richard Exp $
+# $Id: cgi_client.py,v 1.59 2001-11-21 03:21:13 richard Exp $
import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes
import binascii, Cookie, time
props[key] = value
# get the old value
- try:
- existing = cl.get(nodeid, key)
- except KeyError:
- # this might be a new property for which there is no existing
- # value
- if not cl.properties.has_key(key): raise
+ if nodeid:
+ try:
+ existing = cl.get(nodeid, key)
+ except KeyError:
+ # this might be a new property for which there is no existing
+ # value
+ if not cl.properties.has_key(key): raise
# if changed, set it
if nodeid and value != existing:
#
# $Log: not supported by cvs2svn $
+# Revision 1.58 2001/11/21 03:11:28 richard
+# Better handling of new properties.
+#
# Revision 1.57 2001/11/15 10:24:27 richard
# handle the case where there is no file attached
#