✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python27/lib/python2.7/site-packages/paste/debug//debugapp.py
# (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__


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__init__.py
0.216 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
__init__.pyc
0.219 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
debugapp.py
2.76 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
debugapp.pyc
3.108 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
doctest_webapp.py
14.553 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
doctest_webapp.py.stdlib
14.658 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
doctest_webapp.pyc
14.79 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
fsdiff.py
12.773 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
fsdiff.py.stdlib
12.704 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
fsdiff.pyc
14.078 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
prints.py
5.431 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
prints.pyc
5.417 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
profile.py
7.446 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
profile.pyc
8.466 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
testserver.py
3.306 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
testserver.pyc
4.169 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
watchthreads.py
10.608 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
watchthreads.pyc
11.43 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
wdg_validate.py
4.168 KB
22 Oct 2019 6.09 AM
root / linksafe
0644
wdg_validate.py.stdlib
4.249 KB
21 Dec 2011 5.12 PM
root / linksafe
0644
wdg_validate.pyc
4.497 KB
22 Oct 2019 6.09 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF