summaryrefslogtreecommitdiff
path: root/paste/debug/debugapp.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-05-24 06:06:14 +0000
committerianb <devnull@localhost>2006-05-24 06:06:14 +0000
commitb68c85345f4160301ceae22c70b019a427c12140 (patch)
tree684951af14f973181841315fdea923181a91fe4b /paste/debug/debugapp.py
parent2c4eef3238ad7451ae88f9ae7a3661c2814e1843 (diff)
downloadpaste-b68c85345f4160301ceae22c70b019a427c12140.tar.gz
Added entry points for debug apps
Diffstat (limited to 'paste/debug/debugapp.py')
-rwxr-xr-xpaste/debug/debugapp.py10
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))