changeset 4294:81def9a2f5e1

Pass user/group to run_server
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 10 Aug 2008 19:14:31 +0200
parents fb3fa9ab47f8
children 7b81f1a6e8e5
files MoinMoin/script/server/standalone.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/server/standalone.py	Sun Aug 10 19:12:50 2008 +0200
+++ b/MoinMoin/script/server/standalone.py	Sun Aug 10 19:14:31 2008 +0200
@@ -118,14 +118,15 @@
                 daemon.do_start()
             else:
                 run_server(Config.interface, Config.port, Config.docs,
-                           use_debugger=Config.debug)
+                           use_debugger=Config.debug, user=Config.user,
+                           group=Config.group)
 
 class DefaultConfig:
     docs = os.path.join('wiki', 'htdocs')
     if not os.path.exists(docs):
         docs = "/usr/share/moin/htdocs"
-    user = ''
-    group = ''
+    user = None
+    group = None
     port = 8080
     interface = 'localhost'
     debug = False