Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
dba39e24
Commit
dba39e24
authored
Jan 18, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add group support to lms
parent
7ac36d2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
lms/djangoapps/courseware/courses.py
+23
-0
No files found.
lms/djangoapps/courseware/courses.py
View file @
dba39e24
...
...
@@ -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"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment