From b68c85345f4160301ceae22c70b019a427c12140 Mon Sep 17 00:00:00 2001 From: ianb Date: Wed, 24 May 2006 06:06:14 +0000 Subject: Added entry points for debug apps --- paste/debug/debugapp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'paste/debug') 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)) -- cgit v1.2.1