@validator
def truthy(value):
 return (value and ((not isinstance(value, six.string_types)) or value.strip()))

@ validator def truthy ( value ) : return ( value and ( ( not isinstance ( value , six . string_types ) ) or value . strip ( ) ) )
validate that given value is not a falsey value .