Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | Hook |
Functions | |
def | reset |
def | small |
def | strong |
def | grey |
def | lookup |
def | scanvars |
def | html |
def | enable |
Variables | |
string | __author__ = 'Ka-Ping Yee' |
string | __version__ = '$Revision: 5816 $' |
list | __UNDEF__ = [] |
tuple | handler = Hook() |
Handle exceptions in CGI scripts by formatting tracebacks into nice HTML. To enable this module, do: import cgitb; cgitb.enable() at the top of your CGI script. The optional arguments to enable() are: display - if true, tracebacks are displayed in the web browser logdir - if set, tracebacks are written to files in this directory context - number of lines of source code to show for each stack frame By default, tracebacks are displayed but not saved, and context is 5. Alternatively, if you have caught an exception and want cgitb to display it for you, call cgitb.handler(). The optional argument to handler() is a 3-item tuple (etype, evalue, etb) just like the value of sys.exc_info().
def cgitb.enable | ( | display = 1 , |
|
logdir = None , |
|||
context = 5 |
|||
) |
def cgitb.html | ( | etype, | |
evalue, | |||
etb, | |||
context = 5 |
|||
) |
Return a nice HTML document describing a given traceback.
Definition at line 69 of file cgitb.py.
References sre_parse.dir, traceback.format_exception(), inspect.formatargvalues(), inspect.getargvalues(), inspect.getinnerframes(), linecache.getline(), grey(), dospath.join(), scanvars(), small(), locale.str(), and strong().
def cgitb.lookup | ( | name, | |
frame, | |||
locals | |||
) |
Find the value for a given name in the given environment.
def cgitb.reset | ( | ) |
def cgitb.scanvars | ( | reader, | |
frame, | |||
locals | |||
) |
def cgitb.small | ( | text) |
def cgitb.strong | ( | text) |