Skip to content

Commit edd0149

Browse files
author
Richard Jones
committed
New issue form handles lack of note better now.
1 parent 46c4829 commit edd0149

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

roundup/cgi_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: cgi_client.py,v 1.4 2001-07-28 00:34:34 richard Exp $
1+
# $Id: cgi_client.py,v 1.5 2001-07-28 08:16:52 richard Exp $
22

33
import os, cgi, pprint, StringIO, urlparse, re, traceback
44

@@ -389,8 +389,9 @@ def newissue(self, message=None):
389389
m.append('%s: %s'%(name, value))
390390

391391
# handle the note
392-
if self.form.has_key('__note'):
393-
note = self.form['__note'].value
392+
note = self.form.get('__note', None)
393+
if note and note.value:
394+
note = note.value
394395
if '\n' in note:
395396
summary = re.split(r'\n\r?', note)[0]
396397
else:
@@ -489,6 +490,9 @@ def __del__(self):
489490

490491
#
491492
# $Log: not supported by cvs2svn $
493+
# Revision 1.4 2001/07/28 00:34:34 richard
494+
# Fixed some non-string node ids.
495+
#
492496
# Revision 1.3 2001/07/23 03:56:30 richard
493497
# oops, missed a config removal
494498
#

0 commit comments

Comments
 (0)