Linux server19.dn-server.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
LiteSpeed
Server IP : 46.209.20.154 & Your IP : 216.73.217.55
Domains :
Cant Read [ /etc/named.conf ]
User : emadteam
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
paste /
debug /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
221
B
-rw-r--r--
2011-12-21 20:42
__init__.pyc
211
B
-rw-r--r--
2014-09-17 20:43
__init__.pyo
211
B
-rw-r--r--
2014-09-17 20:43
debugapp.py
2.76
KB
-rw-r--r--
2011-12-21 20:42
debugapp.pyc
3.01
KB
-rw-r--r--
2014-09-17 20:43
debugapp.pyo
3.01
KB
-rw-r--r--
2014-09-17 20:43
doctest_webapp.py
14.55
KB
-rw-r--r--
2014-09-17 20:43
doctest_webapp.py.stdlib
14.66
KB
-rwxr-xr-x
2011-12-21 20:42
doctest_webapp.pyc
14.52
KB
-rw-r--r--
2014-09-17 20:43
doctest_webapp.pyo
14.36
KB
-rw-r--r--
2014-09-17 20:43
fsdiff.py
12.77
KB
-rw-r--r--
2014-09-17 20:43
fsdiff.py.stdlib
12.7
KB
-rw-r--r--
2011-12-21 20:42
fsdiff.pyc
13.67
KB
-rw-r--r--
2014-09-17 20:43
fsdiff.pyo
13.64
KB
-rw-r--r--
2014-09-17 20:43
prints.py
5.43
KB
-rw-r--r--
2011-12-21 20:42
prints.pyc
5.3
KB
-rw-r--r--
2014-09-17 20:43
prints.pyo
5.3
KB
-rw-r--r--
2014-09-17 20:43
profile.py
7.45
KB
-rw-r--r--
2011-12-21 20:42
profile.pyc
8.28
KB
-rw-r--r--
2014-09-17 20:43
profile.pyo
8.28
KB
-rw-r--r--
2014-09-17 20:43
testserver.py
3.31
KB
-rw-r--r--
2011-12-21 20:42
testserver.pyc
4.03
KB
-rw-r--r--
2014-09-17 20:43
testserver.pyo
3.87
KB
-rw-r--r--
2014-09-17 20:43
watchthreads.py
10.61
KB
-rw-r--r--
2011-12-21 20:42
watchthreads.pyc
11.25
KB
-rw-r--r--
2014-09-17 20:43
watchthreads.pyo
11.25
KB
-rw-r--r--
2014-09-17 20:43
wdg_validate.py
4.17
KB
-rw-r--r--
2014-09-17 20:43
wdg_validate.py.stdlib
4.25
KB
-rw-r--r--
2011-12-21 20:42
wdg_validate.pyc
4.4
KB
-rw-r--r--
2014-09-17 20:43
wdg_validate.pyo
4.4
KB
-rw-r--r--
2014-09-17 20:43
Save
Rename
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # (c) 2005 Clark C. Evans # This module is part of the Python Paste Project and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php # This code was written with funding by http://prometheusresearch.com """ Various Applications for Debugging/Testing Purposes """ import time __all__ = ['SimpleApplication', 'SlowConsumer'] class SimpleApplication(object): """ Produces a simple web page """ def __call__(self, environ, start_response): body = "<html><body>simple</body></html>" start_response("200 OK", [('Content-Type', 'text/html'), ('Content-Length', str(len(body)))]) return [body] class SlowConsumer(object): """ Consumes an upload slowly... NOTE: This should use the iterator form of ``wsgi.input``, but it isn't implemented in paste.httpserver. """ def __init__(self, chunk_size = 4096, delay = 1, progress = True): self.chunk_size = chunk_size self.delay = delay self.progress = True def __call__(self, environ, start_response): size = 0 total = environ.get('CONTENT_LENGTH') if total: remaining = int(total) while remaining > 0: if self.progress: print "%s of %s remaining" % (remaining, total) if remaining > 4096: chunk = environ['wsgi.input'].read(4096) else: chunk = environ['wsgi.input'].read(remaining) if not chunk: break size += len(chunk) remaining -= len(chunk) if self.delay: time.sleep(self.delay) body = "<html><body>%d bytes</body></html>" % size else: body = ('<html><body>\n' '<form method="post" enctype="multipart/form-data">\n' '<input type="file" name="file">\n' '<input type="submit" >\n' '</form></body></html>\n') print "bingles" start_response("200 OK", [('Content-Type', 'text/html'), ('Content-Length', len(body))]) return [body] def make_test_app(global_conf): return SimpleApplication() make_test_app.__doc__ = SimpleApplication.__doc__ def make_slow_app(global_conf, chunk_size=4096, delay=1, progress=True): from paste.deploy.converters import asbool return SlowConsumer( chunk_size=int(chunk_size), delay=int(delay), progress=asbool(progress)) make_slow_app.__doc__ = SlowConsumer.__doc__