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:
Stefan Hacker
2010-12-20 14:19:55 +01:00
parent 4e3aaea8d5
commit 41e1e75211
5 changed files with 34 additions and 5 deletions

View File

@@ -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'))})