From: richard Date: Sat, 28 Jul 2001 08:16:52 +0000 (+0000) Subject: New issue form handles lack of note better now. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3603226bcc10b1c55f8d52556f825244efc7b47c;p=roundup.git New issue form handles lack of note better now. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@121 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index 9dbed7f..9e63524 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -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 #