def s3_fullname_bulk(record_ids=[], truncate=True):
 db = current.db
 ptable = db.pr_person
 query = ptable.id.belongs(record_ids)
 rows = db(query).select(ptable.id, ptable.first_name, ptable.middle_name, ptable.last_name)
 represents = {}
 for row in rows:
  (fname, mname, lname) = ('', '', '')
  if row.first_name:
   fname = row.first_name.strip()
  if row.middle_name:
   mname = row.middle_name.strip()
  if row.last_name:
   lname = row.last_name.strip()
  represent = s3_format_fullname(fname, mname, lname, truncate)
  represents[row.id] = represent
 return represents

def s3_fullname_bulk ( record_ids = [ ] , truncate = True ) : db = current . db ptable = db . pr_person query = ptable . id . belongs ( record_ids ) rows = db ( query ) . select ( ptable . id , ptable . first_name , ptable . middle_name , ptable . last_name ) represents = { } for row in rows : ( fname , mname , lname ) = ( '' , '' , '' ) if row . first_name : fname = row . first_name . strip ( ) if row . middle_name : mname = row . middle_name . strip ( ) if row . last_name : lname = row . last_name . strip ( ) represent = s3_format_fullname ( fname , mname , lname , truncate ) represents [ row . id ] = represent return represents
returns the full name for a set of persons - currently unused .