Mercurial > p > roundup > code
comparison roundup/cgi_client.py @ 674:d20e2e5f577a
stop sending blank (whitespace-only) notes
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 02 Apr 2002 01:56:10 +0000 |
| parents | 9667625a5695 |
| children | 8d1e34b8e680 |
comparison
equal
deleted
inserted
replaced
| 673:604c84696461 | 674:d20e2e5f577a |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: cgi_client.py,v 1.114 2002-03-17 23:06:05 richard Exp $ | 18 # $Id: cgi_client.py,v 1.115 2002-04-02 01:56:10 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 WWW request handler (also used in the stand-alone server). | 21 WWW request handler (also used in the stand-alone server). |
| 22 """ | 22 """ |
| 23 | 23 |
| 661 props = cl.getprops() | 661 props = cl.getprops() |
| 662 note = None | 662 note = None |
| 663 # in a nutshell, don't do anything if there's no note or there's no | 663 # in a nutshell, don't do anything if there's no note or there's no |
| 664 # NOSY | 664 # NOSY |
| 665 if self.form.has_key('__note'): | 665 if self.form.has_key('__note'): |
| 666 note = self.form['__note'].value | 666 note = self.form['__note'].value.strip() |
| 667 if not props.has_key('messages'): | 667 if not props.has_key('messages'): |
| 668 return None, files | 668 return None, files |
| 669 if not isinstance(props['messages'], hyperdb.Multilink): | 669 if not isinstance(props['messages'], hyperdb.Multilink): |
| 670 return None, files | 670 return None, files |
| 671 if not props['messages'].classname == 'msg': | 671 if not props['messages'].classname == 'msg': |
| 1355 props[key] = value | 1355 props[key] = value |
| 1356 return props | 1356 return props |
| 1357 | 1357 |
| 1358 # | 1358 # |
| 1359 # $Log: not supported by cvs2svn $ | 1359 # $Log: not supported by cvs2svn $ |
| 1360 # Revision 1.114 2002/03/17 23:06:05 richard | |
| 1361 # oops | |
| 1362 # | |
| 1360 # Revision 1.113 2002/03/14 23:59:24 richard | 1363 # Revision 1.113 2002/03/14 23:59:24 richard |
| 1361 # . #517734 ] web header customisation is obscure | 1364 # . #517734 ] web header customisation is obscure |
| 1362 # | 1365 # |
| 1363 # Revision 1.112 2002/03/12 22:52:26 richard | 1366 # Revision 1.112 2002/03/12 22:52:26 richard |
| 1364 # more pychecker warnings removed | 1367 # more pychecker warnings removed |
