summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c997a0)
raw | patch | inline | side by side (parent: 0c997a0)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 12 May 2002 23:46:33 +0000 (23:46 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 12 May 2002 23:46:33 +0000 (23:46 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@726 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 a5738ad02ccae68532e8dc9ec7e20eef5b90c0b2..9675bba6c00ead502f7cc6fc144e02d182023565 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.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).
# 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):
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
#
# $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.
#