diff MoinMoin/script/server/standalone.py @ 4261:6de8b4205754

Moved serving-related code into MoinMoin.web.serving module
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 02 Aug 2008 21:37:30 +0200
parents c2ee4633b9e8
children ba0daaf24d63
line wrap: on
line diff
--- a/MoinMoin/script/server/standalone.py	Sat Aug 02 15:00:48 2008 +0200
+++ b/MoinMoin/script/server/standalone.py	Sat Aug 02 21:37:30 2008 +0200
@@ -13,7 +13,7 @@
 from MoinMoin.script import MoinScript
 from MoinMoin.server.server_standalone import StandaloneConfig
 from MoinMoin.server.daemon import Daemon
-from MoinMoin.wsgiapp import run_server
+from MoinMoin.web.serving import run_server
 
 class PluginScript(MoinScript):
     def __init__(self, argv, def_values):
@@ -118,7 +118,8 @@
                 daemon = Daemon('moin', pidfile, run_server, Config)
                 daemon.do_start()
             else:
-                run_server(Config)
+                run_server(Config.interface, Config.port, Config.docs,
+                           use_debugger=Config.debug)
 
 class DefaultConfig(StandaloneConfig):
     docs = os.path.join('wiki', 'htdocs')