From dba39e243174f28a1245103721194ef33a7300ca Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 18 Jan 2013 12:50:25 -0500 Subject: [PATCH] add group support to lms --- lms/djangoapps/courseware/courses.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lms/djangoapps/courseware/courses.py b/lms/djangoapps/courseware/courses.py index 7c0d30ebd8..90ebbd33da 100644 --- a/lms/djangoapps/courseware/courses.py +++ b/lms/djangoapps/courseware/courses.py @@ -58,6 +58,29 @@ def get_opt_course_with_access(user, course_id, action): return get_course_with_access(user, course_id, action) + + +def is_course_cohorted(course_id): + """ + given a course id, return a boolean for whether or not the course is cohorted + + """ + +def get_cohort_id(user, course_id): + """ + given a course id and a user, return the id of the cohort that user is assigned to + and if the course is not cohorted or the user is an instructor, return None + + """ + +def is_commentable_cohorted(course_id,commentable_id) + """ + given a course and a commentable id, return whether or not this commentable is cohorted + + """ + + + def course_image_url(course): """Try to look up the image url for the course. If it's not found, log an error and return the dead link"""