changeset 4615:8456e790eb58

run_server param name need to match Config attribute name 'debug'
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 03:27:09 +0100
parents 159902268129
children 995e39af3f7c
files MoinMoin/script/server/standalone.py MoinMoin/web/serving.py
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/server/standalone.py	Sun Mar 01 03:18:57 2009 +0100
+++ b/MoinMoin/script/server/standalone.py	Sun Mar 01 03:27:09 2009 +0100
@@ -112,8 +112,7 @@
                 daemon.do_start()
             else:
                 run_server(Config.interface, Config.port, Config.docs,
-                           use_debugger=Config.debug, user=Config.user,
-                           group=Config.group)
+                           debug=Config.debug, user=Config.user, group=Config.group)
 
 class DefaultConfig:
     # where the static data is served from - you can either use:
--- a/MoinMoin/web/serving.py	Sun Mar 01 03:18:57 2009 +0100
+++ b/MoinMoin/web/serving.py	Sun Mar 01 03:27:09 2009 +0100
@@ -129,7 +129,7 @@
     logging.info("Running as uid/gid %d/%d" % (uid, gid))
 
 def run_server(host='localhost', port=8080, docs=True,
-               threaded=True, use_debugger=False, user=None, group=None):
+               threaded=True, debug=False, user=None, group=None):
     """ Run a standalone server on specified host/port. """
     application = make_application(shared=docs)
 
@@ -141,6 +141,6 @@
         switch_user(user, group)
 
     run_simple(host, port, application, threaded=threaded,
-               use_debugger=use_debugger,
+               use_debugger=debug,
                request_handler=RequestHandler)