Mercurial > p > roundup > code
comparison roundup/cgitb.py @ 501:e0944187229f
missed an import _
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 08 Jan 2002 11:56:24 +0000 |
| parents | fad315a10185 |
| children | 3eb5ea7e3720 |
comparison
equal
deleted
inserted
replaced
| 500:3df718d48a5d | 501:e0944187229f |
|---|---|
| 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.8 2002-01-05 02:22:32 richard Exp $ | 4 # $Id: cgitb.py,v 1.9 2002-01-08 11:56:24 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 |
| 10 import sys, os, types, string, keyword, linecache, tokenize, inspect, pydoc | 10 import sys, os, types, string, keyword, linecache, tokenize, inspect, pydoc |
| 11 | 11 |
| 12 from roundup.i18n import _ | 12 from i18n import _ |
| 13 | 13 |
| 14 def breaker(): | 14 def breaker(): |
| 15 return ('<body bgcolor="#f0f0ff">' + | 15 return ('<body bgcolor="#f0f0ff">' + |
| 16 '<font color="#f0f0ff" size="-5"> > </font> ' + | 16 '<font color="#f0f0ff" size="-5"> > </font> ' + |
| 17 '</table>' * 5) | 17 '</table>' * 5) |
| 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.8 2002/01/05 02:22:32 richard | |
| 128 # i18n'ification | |
| 129 # | |
| 127 # Revision 1.7 2001/11/22 15:46:42 jhermann | 130 # Revision 1.7 2001/11/22 15:46:42 jhermann |
| 128 # Added module docstrings to all modules. | 131 # Added module docstrings to all modules. |
| 129 # | 132 # |
| 130 # Revision 1.6 2001/09/29 13:27:00 richard | 133 # Revision 1.6 2001/09/29 13:27:00 richard |
| 131 # CGI interfaces now spit up a top-level index of all the instances they can | 134 # CGI interfaces now spit up a top-level index of all the instances they can |
