changeset 4365:65f8c99cf4b2

fix moin server standalone argument processing for --interface=""
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 Oct 2008 10:22:32 +0200
parents fea6b6afce05
children b1c2405d598e
files MoinMoin/script/server/standalone.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/server/standalone.py	Fri Oct 03 21:14:46 2008 +0200
+++ b/MoinMoin/script/server/standalone.py	Sat Oct 04 10:22:32 2008 +0200
@@ -115,7 +115,7 @@
                 Config.group = self.options.group
             if self.options.port:
                 Config.port = self.options.port
-            if self.options.interface:
+            if hasattr(self.options, 'interface'): # needs to work for "" value also
                 Config.interface = self.options.interface
             if serverClass:
                 Config.serverClass = serverClass + 'Server'
@@ -141,3 +141,4 @@
     serverClass = 'ThreadPoolServer'
     threadLimit = 10
     requestQueueSize = 50
+