def s3_auth_user_represent_name(id, row=None):
 if (not row):
  if (not id):
   return current.messages['NONE']
  db = current.db
  table = db.auth_user
  row = db((table.id == id)).select(table.first_name, table.last_name, limitby=(0, 1)).first()
 try:
  return s3_format_fullname(row.first_name.strip(), None, row.last_name.strip())
 except:
  return current.messages.UNKNOWN_OPT

def s3_auth_user_represent_name ( id , row = None ) : if ( not row ) : if ( not id ) : return current . messages [ 'NONE' ] db = current . db table = db . auth_user row = db ( ( table . id == id ) ) . select ( table . first_name , table . last_name , limitby = ( 0 , 1 ) ) . first ( ) try : return s3_format_fullname ( row . first_name . strip ( ) , None , row . last_name . strip ( ) ) except : return current . messages . UNKNOWN_OPT
represent users by their names .