1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: cgi_client.py,v 1.117 2002-05-12 23:42:29 richard Exp $
18+ # $Id: cgi_client.py,v 1.118 2002-05-12 23:46:33 richard Exp $
1919
2020__doc__ = """
2121WWW request handler (also used in the stand-alone server).
@@ -691,6 +691,8 @@ def _handle_message(self):
691691 # NOSY
692692 if self .form .has_key ('__note' ):
693693 note = self .form ['__note' ].value .strip ()
694+ if not note :
695+ return None , files
694696 if not props .has_key ('messages' ):
695697 return None , files
696698 if not isinstance (props ['messages' ], hyperdb .Multilink ):
@@ -701,16 +703,11 @@ def _handle_message(self):
701703 return None , files
702704
703705 # handle the note
704- m = []
705- if note :
706- if '\n ' in note :
707- summary = re .split (r'\n\r?' , note )[0 ]
708- else :
709- summary = note
710- m = ['%s\n ' % note ]
711- elif not files :
712- # don't generate a useless message
713- return None , files
706+ if '\n ' in note :
707+ summary = re .split (r'\n\r?' , note )[0 ]
708+ else :
709+ summary = note
710+ m = ['%s\n ' % note ]
714711
715712 # handle the messageid
716713 # TODO: handle inreplyto
@@ -1385,6 +1382,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
13851382
13861383#
13871384# $Log: not supported by cvs2svn $
1385+ # Revision 1.117 2002/05/12 23:42:29 richard
1386+ # ehem
1387+ #
13881388# Revision 1.116 2002/05/02 08:07:49 richard
13891389# Added the ADD_AUTHOR_TO_NOSY handling to the CGI interface.
13901390#
0 commit comments