Add commaSeperatedIntegers/commaSeperatedStrings validator functions to configuration. Rename testsuite collection test.py to testsuite.py to prevent name collision with test module test.py
This commit is contained in:
6
mumo.py
6
mumo.py
@@ -32,7 +32,9 @@
|
||||
import sys
|
||||
import Ice
|
||||
import logging
|
||||
from config import Config, x2bool
|
||||
from config import (Config,
|
||||
x2bool,
|
||||
commaSeperatedIntegers)
|
||||
|
||||
from threading import Timer
|
||||
from optparse import OptionParser
|
||||
@@ -57,7 +59,7 @@ default.update({'ice':(('host', str, '127.0.0.1'),
|
||||
('watchdog', int, 30)),
|
||||
|
||||
'iceraw':None,
|
||||
'murmur':(('servers', lambda x:map(int, x.split(',')), []),),
|
||||
'murmur':(('servers', commaSeperatedIntegers, []),),
|
||||
'log':(('level', int, logging.DEBUG),
|
||||
('file', str, 'mumo.log'))})
|
||||
|
||||
|
Reference in New Issue
Block a user