diff options
| author | ianb <devnull@localhost> | 2006-05-24 06:06:14 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-05-24 06:06:14 +0000 |
| commit | b68c85345f4160301ceae22c70b019a427c12140 (patch) | |
| tree | 684951af14f973181841315fdea923181a91fe4b /paste/debug/debugapp.py | |
| parent | 2c4eef3238ad7451ae88f9ae7a3661c2814e1843 (diff) | |
| download | paste-b68c85345f4160301ceae22c70b019a427c12140.tar.gz | |
Added entry points for debug apps
Diffstat (limited to 'paste/debug/debugapp.py')
| -rwxr-xr-x | paste/debug/debugapp.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/paste/debug/debugapp.py b/paste/debug/debugapp.py index c33e1f4..15118d3 100755 --- a/paste/debug/debugapp.py +++ b/paste/debug/debugapp.py @@ -61,3 +61,13 @@ class SlowConsumer: start_response("200 OK",[('Content-Type', 'text/html'), ('Content-Length', len(body))]) return [body] + +def make_test_app(global_conf): + return SimpleApplication() + +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)) |
