branch | v0.6.x |
changeset 201 | dbb0f7ed7858 |
parent 200 | 983cf98d5881 |
child 204 | 83938336c518 |
--- a/VirtualMailManager/Config.py Thu Feb 11 07:20:49 2010 +0000 +++ b/VirtualMailManager/Config.py Fri Feb 12 04:15:18 2010 +0000 @@ -247,7 +247,10 @@ the value, when `LazyConfig.set()` is called. """ self.__cls = cls - self.__default = default + if not default is None:# enforce the type of the default value + self.__default = self.__cls(default) + else: + self.__default = default if not callable(getter): raise TypeError('getter has to be a callable, got a %r' % getter.__class__.__name__)