Mercurial > p > roundup > code
comparison roundup/cgi/client.py @ 1443:55d16d2b39cc
ehem
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 18 Feb 2003 01:59:10 +0000 |
| parents | b42fa71754c9 |
| children | 8c5a513e52c9 |
comparison
equal
deleted
inserted
replaced
| 1442:b42fa71754c9 | 1443:55d16d2b39cc |
|---|---|
| 1 # $Id: client.py,v 1.90 2003-02-18 01:57:39 richard Exp $ | 1 # $Id: client.py,v 1.91 2003-02-18 01:59:10 richard Exp $ |
| 2 | 2 |
| 3 __doc__ = """ | 3 __doc__ = """ |
| 4 WWW request handler (also used in the stand-alone server). | 4 WWW request handler (also used in the stand-alone server). |
| 5 """ | 5 """ |
| 6 | 6 |
| 1521 for (cn, id), props in all_props.items(): | 1521 for (cn, id), props in all_props.items(): |
| 1522 cl = self.db.classes[cn] | 1522 cl = self.db.classes[cn] |
| 1523 if not isinstance(cl, hyperdb.FileClass): | 1523 if not isinstance(cl, hyperdb.FileClass): |
| 1524 continue | 1524 continue |
| 1525 if not props.get('content', ''): | 1525 if not props.get('content', ''): |
| 1526 del all_props((cn, id)) | 1526 del all_props[(cn, id)] |
| 1527 | 1527 |
| 1528 return all_props, all_links | 1528 return all_props, all_links |
| 1529 | 1529 |
| 1530 def fixNewlines(text): | 1530 def fixNewlines(text): |
| 1531 ''' Homogenise line endings. | 1531 ''' Homogenise line endings. |
