*** empty log message ***

This commit is contained in:
James Vega 2005-01-06 04:01:16 +00:00
parent b4817ec5d8
commit 6061f49a48
1 changed files with 2 additions and 5 deletions

View File

@ -457,17 +457,14 @@ class OnlySomeStrings(String):
'This is a bug.'
self.__parent = super(OnlySomeStrings, self)
self.__parent.__init__(*args, **kwargs)
self.__doc__ = 'Valid values include %s.' % \
utils.commaAndify(map(repr, self.validStrings))
def help(self):
strings = [s for s in self.validStrings if s]
return '%s Valid strings: %s.' % \
(self._help, utils.commaAndify(strings))
def error(self):
self.__parent.error('That is not a valid value. '
'Valid values include %s.' % \
utils.commaAndify(map(repr, self.validStrings)))
def normalize(self, s):
lowered = s.lower()
L = list(map(str.lower, self.validStrings))