def s3_format_fullname(fname=None, mname=None, lname=None, truncate=True):
 name = ''
 if (fname or mname or lname):
  if (not fname):
   fname = ''
  if (not mname):
   mname = ''
  if (not lname):
   lname = ''
  if truncate:
   fname = ('%s' % s3_truncate(fname, 24))
   mname = ('%s' % s3_truncate(mname, 24))
   lname = ('%s' % s3_truncate(lname, 24, nice=False))
  name_format = current.deployment_settings.get_pr_name_format()
  name = (name_format % dict(first_name=fname, middle_name=mname, last_name=lname))
  name = name.replace('  ', ' ').rstrip()
  if truncate:
   name = s3_truncate(name, 24, nice=False)
 return name

def s3_format_fullname ( fname = None , mname = None , lname = None , truncate = True ) : name = '' if ( fname or mname or lname ) : if ( not fname ) : fname = '' if ( not mname ) : mname = '' if ( not lname ) : lname = '' if truncate : fname = ( '%s' % s3_truncate ( fname , 24 ) ) mname = ( '%s' % s3_truncate ( mname , 24 ) ) lname = ( '%s' % s3_truncate ( lname , 24 , nice = False ) ) name_format = current . deployment_settings . get_pr_name_format ( ) name = ( name_format % dict ( first_name = fname , middle_name = mname , last_name = lname ) ) name = name . replace ( '  ' , ' ' ) . rstrip ( ) if truncate : name = s3_truncate ( name , 24 , nice = False ) return name
formats the full name of a person .