Mercurial > p > roundup > code
comparison roundup/cgitb.py @ 541:3eb5ea7e3720
Handle a special case that the CGI interface tickles.
I need to check if this needs fixing in python's core.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 16 Jan 2002 04:49:45 +0000 |
| parents | e0944187229f |
| children |
comparison
equal
deleted
inserted
replaced
| 540:636e9b81f5cd | 541:3eb5ea7e3720 |
|---|---|
| 1 # | 1 # |
| 2 # This module was written by Ka-Ping Yee, <ping@lfw.org>. | 2 # This module was written by Ka-Ping Yee, <ping@lfw.org>. |
| 3 # | 3 # |
| 4 # $Id: cgitb.py,v 1.9 2002-01-08 11:56:24 richard Exp $ | 4 # $Id: cgitb.py,v 1.10 2002-01-16 04:49:45 richard Exp $ |
| 5 | 5 |
| 6 __doc__ = """ | 6 __doc__ = """ |
| 7 Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>. | 7 Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>. |
| 8 """ | 8 """ |
| 9 | 9 |
| 48 | 48 |
| 49 level = ''' | 49 level = ''' |
| 50 <table width="100%%" bgcolor="#d8bbff" cellspacing=0 cellpadding=2 border=0> | 50 <table width="100%%" bgcolor="#d8bbff" cellspacing=0 cellpadding=2 border=0> |
| 51 <tr><td>%s %s</td></tr></table>''' % (link, call) | 51 <tr><td>%s %s</td></tr></table>''' % (link, call) |
| 52 | 52 |
| 53 if file is None: | 53 if index is None or file is None: |
| 54 traceback.append('<p>' + level) | 54 traceback.append('<p>' + level) |
| 55 continue | 55 continue |
| 56 | 56 |
| 57 # do a fil inspection | 57 # do a fil inspection |
| 58 names = [] | 58 names = [] |
| 122 print breaker() | 122 print breaker() |
| 123 print html() | 123 print html() |
| 124 | 124 |
| 125 # | 125 # |
| 126 # $Log: not supported by cvs2svn $ | 126 # $Log: not supported by cvs2svn $ |
| 127 # Revision 1.9 2002/01/08 11:56:24 richard | |
| 128 # missed an import _ | |
| 129 # | |
| 127 # Revision 1.8 2002/01/05 02:22:32 richard | 130 # Revision 1.8 2002/01/05 02:22:32 richard |
| 128 # i18n'ification | 131 # i18n'ification |
| 129 # | 132 # |
| 130 # Revision 1.7 2001/11/22 15:46:42 jhermann | 133 # Revision 1.7 2001/11/22 15:46:42 jhermann |
| 131 # Added module docstrings to all modules. | 134 # Added module docstrings to all modules. |
