summaryrefslogtreecommitdiff
path: root/flup/server/scgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'flup/server/scgi.py')
-rw-r--r--flup/server/scgi.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/flup/server/scgi.py b/flup/server/scgi.py
index 5dbf377..10b0226 100644
--- a/flup/server/scgi.py
+++ b/flup/server/scgi.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2005 Allan Saddi <allan@saddi.com>
+# Copyright (c) 2005, 2006 Allan Saddi <allan@saddi.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -90,7 +90,7 @@ class WSGIServer(BaseSCGIServer, ThreadedServer):
def __init__(self, application, scriptName='', environ=None,
multithreaded=True, multiprocess=False,
bindAddress=('localhost', 4000), allowedServers=None,
- loggingLevel=logging.INFO, **kw):
+ loggingLevel=logging.INFO, debug=True, **kw):
"""
scriptName is the initial portion of the URL path that "belongs"
to your application. It is used to determine PATH_INFO (which doesn't
@@ -118,7 +118,8 @@ class WSGIServer(BaseSCGIServer, ThreadedServer):
multiprocess=multiprocess,
bindAddress=bindAddress,
allowedServers=allowedServers,
- loggingLevel=loggingLevel)
+ loggingLevel=loggingLevel,
+ debug=debug)
for key in ('jobClass', 'jobArgs'):
if kw.has_key(key):
del kw[key]
@@ -148,6 +149,10 @@ class WSGIServer(BaseSCGIServer, ThreadedServer):
return ret
+def factory(global_conf, host=None, port=None, **local):
+ import paste_factory
+ return paste_factory.helper(WSGIServer, global_conf, host, port, **local)
+
if __name__ == '__main__':
def test_app(environ, start_response):
"""Probably not the most efficient example."""