def s3_yes_no_represent(value):
 if (value is True):
  return current.T('Yes')
 elif (value is False):
  return current.T('No')
 else:
  return current.messages['NONE']

def s3_yes_no_represent ( value ) : if ( value is True ) : return current . T ( 'Yes' ) elif ( value is False ) : return current . T ( 'No' ) else : return current . messages [ 'NONE' ]
represent a boolean field as yes/no instead of true/false .