def __space_delimited_list(value):
 (valid, _value, errmsg) = (False, value, 'space-delimited string')
 try:
  if hasattr(value, '__iter__'):
   valid = True
  else:
   _value = value.split()
   if (_value == []):
    raise ValueError
   valid = True
 except AttributeError:
  pass
 except ValueError:
  pass
 return (valid, _value, errmsg)

def __space_delimited_list ( value ) : ( valid , _value , errmsg ) = ( False , value , 'space-delimited string' ) try : if hasattr ( value , '__iter__' ) : valid = True else : _value = value . split ( ) if ( _value == [ ] ) : raise ValueError valid = True except AttributeError : pass except ValueError : pass return ( valid , _value , errmsg )
validate that a value contains one or more space-delimited values .