def validate_notempty(root, value, default):
 if value:
  return (None, value)
 else:
  return (None, default)

def validate_notempty ( root , value , default ) : if value : return ( None , value ) else : return ( None , default )
if value is empty .