Code

New issue form handles lack of note better now.
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 28 Jul 2001 08:16:52 +0000 (08:16 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 28 Jul 2001 08:16:52 +0000 (08:16 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@121 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi_client.py

index 9dbed7f2b1255f22e2ccbb327aeb9157494dfc82..9e635244ad020cbee3cb144cda28572b89427e18 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: cgi_client.py,v 1.4 2001-07-28 00:34:34 richard Exp $
+# $Id: cgi_client.py,v 1.5 2001-07-28 08:16:52 richard Exp $
 
 import os, cgi, pprint, StringIO, urlparse, re, traceback
 
@@ -389,8 +389,9 @@ class Client:
                         m.append('%s: %s'%(name, value))
 
                     # handle the note
-                    if self.form.has_key('__note'):
-                        note = self.form['__note'].value
+                    note = self.form.get('__note', None)
+                    if note and note.value:
+                        note = note.value
                         if '\n' in note:
                             summary = re.split(r'\n\r?', note)[0]
                         else:
@@ -489,6 +490,9 @@ class Client:
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.4  2001/07/28 00:34:34  richard
+# Fixed some non-string node ids.
+#
 # Revision 1.3  2001/07/23 03:56:30  richard
 # oops, missed a config removal
 #