From c8e546c68e1d49795f0784560a59f255ec2580df Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 12 May 2002 23:46:33 +0000 Subject: [PATCH] ehem, part 2 git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@726 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index a5738ad..9675bba 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.117 2002-05-12 23:42:29 richard Exp $ +# $Id: cgi_client.py,v 1.118 2002-05-12 23:46:33 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -691,6 +691,8 @@ function help_window(helpurl, width, height) { # NOSY if self.form.has_key('__note'): note = self.form['__note'].value.strip() + if not note: + return None, files if not props.has_key('messages'): return None, files if not isinstance(props['messages'], hyperdb.Multilink): @@ -701,16 +703,11 @@ function help_window(helpurl, width, height) { return None, files # handle the note - m = [] - if note: - if '\n' in note: - summary = re.split(r'\n\r?', note)[0] - else: - summary = note - m = ['%s\n'%note] - elif not files: - # don't generate a useless message - return None, files + if '\n' in note: + summary = re.split(r'\n\r?', note)[0] + else: + summary = note + m = ['%s\n'%note] # handle the messageid # TODO: handle inreplyto @@ -1385,6 +1382,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): # # $Log: not supported by cvs2svn $ +# Revision 1.117 2002/05/12 23:42:29 richard +# ehem +# # Revision 1.116 2002/05/02 08:07:49 richard # Added the ADD_AUTHOR_TO_NOSY handling to the CGI interface. # -- 2.30.2