def string_values(node, cstruct):
 are_strings = [isinstance(v, six.string_types) for v in cstruct.values()]
 if (not all(are_strings)):
  error_msg = ('%s contains non string value' % cstruct)
  raise colander.Invalid(node, error_msg)

def string_values ( node , cstruct ) : are_strings = [ isinstance ( v , six . string_types ) for v in cstruct . values ( ) ] if ( not all ( are_strings ) ) : error_msg = ( '%s contains non string value' % cstruct ) raise colander . Invalid ( node , error_msg )
validate that a colander .