def s3_auth_user_represent(id, row=None):
 if row:
  return row.email
 elif (not id):
  return current.messages['NONE']
 db = current.db
 table = db.auth_user
 user = db((table.id == id)).select(table.email, limitby=(0, 1), cache=current.s3db.cache).first()
 try:
  return user.email
 except:
  return current.messages.UNKNOWN_OPT

def s3_auth_user_represent ( id , row = None ) : if row : return row . email elif ( not id ) : return current . messages [ 'NONE' ] db = current . db table = db . auth_user user = db ( ( table . id == id ) ) . select ( table . email , limitby = ( 0 , 1 ) , cache = current . s3db . cache ) . first ( ) try : return user . email except : return current . messages . UNKNOWN_OPT
represent a user as their email address .