Mercurial > p > roundup > code
comparison roundup/cgitb.py @ 252:76c6994aa4e8
CGI interfaces now spit up a top-level index of all instances they can serve.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 29 Sep 2001 13:27:00 +0000 |
| parents | 18134bffab37 |
| children | bdc2ea127ae9 |
comparison
equal
deleted
inserted
replaced
| 251:2f4123c715f1 | 252:76c6994aa4e8 |
|---|---|
| 1 # | 1 # |
| 2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) | 2 # This module was written by Ka-Ping Yee, <ping@lfw.org>. |
| 3 # This module is free software, and you may redistribute it and/or modify | |
| 4 # under the same terms as Python, so long as this copyright message and | |
| 5 # disclaimer are retained in their original form. | |
| 6 # | |
| 7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR | |
| 8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING | |
| 9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE | |
| 10 # POSSIBILITY OF SUCH DAMAGE. | |
| 11 # | |
| 12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, | |
| 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" | |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | |
| 17 # | 3 # |
| 18 # $Id: cgitb.py,v 1.5 2001-08-07 00:24:42 richard Exp $ | 4 # $Id: cgitb.py,v 1.6 2001-09-29 13:27:00 richard Exp $ |
| 19 | 5 |
| 20 import sys, os, types, string, keyword, linecache, tokenize, inspect, pydoc | 6 import sys, os, types, string, keyword, linecache, tokenize, inspect, pydoc |
| 21 | 7 |
| 22 def breaker(): | 8 def breaker(): |
| 23 return ('<body bgcolor="#f0f0ff">' + | 9 return ('<body bgcolor="#f0f0ff">' + |
| 130 print breaker() | 116 print breaker() |
| 131 print html() | 117 print html() |
| 132 | 118 |
| 133 # | 119 # |
| 134 # $Log: not supported by cvs2svn $ | 120 # $Log: not supported by cvs2svn $ |
| 121 # Revision 1.5 2001/08/07 00:24:42 richard | |
| 122 # stupid typo | |
| 123 # | |
| 135 # Revision 1.4 2001/08/07 00:15:51 richard | 124 # Revision 1.4 2001/08/07 00:15:51 richard |
| 136 # Added the copyright/license notice to (nearly) all files at request of | 125 # Added the copyright/license notice to (nearly) all files at request of |
| 137 # Bizar Software. | 126 # Bizar Software. |
| 138 # | 127 # |
| 139 # Revision 1.3 2001/07/29 07:01:39 richard | 128 # Revision 1.3 2001/07/29 07:01:39 richard |
