def getCourseNameFromId(courseid):
 if (courseid == 1):
  return ''
 else:
  q = (db.courses.id == courseid)
  course_name = db(q).select()[0].course_name
  return course_name

def getCourseNameFromId ( courseid ) : if ( courseid == 1 ) : return '' else : q = ( db . courses . id == courseid ) course_name = db ( q ) . select ( ) [ 0 ] . course_name return course_name
used to compute auth .