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
7d90617c
Commit
7d90617c
authored
Aug 15, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge with master
parent
7f8f7029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
lms/djangoapps/courseware/courses.py
+2
-12
No files found.
lms/djangoapps/courseware/courses.py
View file @
7d90617c
...
@@ -142,9 +142,6 @@ def get_course_info_section(course, section_key):
...
@@ -142,9 +142,6 @@ def get_course_info_section(course, section_key):
raise
KeyError
(
"Invalid about key "
+
str
(
section_key
))
raise
KeyError
(
"Invalid about key "
+
str
(
section_key
))
<<<<<<<
HEAD
def
get_courses_by_university
(
user
):
=======
def
course_staff_group_name
(
course
):
def
course_staff_group_name
(
course
):
'''
'''
course should be either a CourseDescriptor instance, or a string (the
course should be either a CourseDescriptor instance, or a string (the
...
@@ -200,7 +197,6 @@ def has_access_to_course(user, course):
...
@@ -200,7 +197,6 @@ def has_access_to_course(user, course):
def
get_courses_by_university
(
user
,
domain
=
None
):
def
get_courses_by_university
(
user
,
domain
=
None
):
>>>>>>>
implement
subdomain
-
based
course
displays
'''
'''
Returns dict of lists of courses available, keyed by course.org (ie university).
Returns dict of lists of courses available, keyed by course.org (ie university).
Courses are sorted by course.number.
Courses are sorted by course.number.
...
@@ -221,16 +217,10 @@ def get_courses_by_university(user, domain=None):
...
@@ -221,16 +217,10 @@ def get_courses_by_university(user, domain=None):
universities
=
defaultdict
(
list
)
universities
=
defaultdict
(
list
)
for
course
in
courses
:
for
course
in
courses
:
<<<<<<<
HEAD
if
not
has_access
(
user
,
course
,
'see_exists'
):
if
has_access
(
user
,
course
,
'see_exists'
):
continue
universities
[
course
.
org
]
.
append
(
course
)
=======
if
settings
.
MITX_FEATURES
.
get
(
'ACCESS_REQUIRE_STAFF_FOR_COURSE'
):
if
not
has_access_to_course
(
user
,
course
):
continue
if
course
.
id
not
in
visible_courses
:
if
course
.
id
not
in
visible_courses
:
continue
continue
universities
[
course
.
org
]
.
append
(
course
)
universities
[
course
.
org
]
.
append
(
course
)
>>>>>>>
implement
subdomain
-
based
course
displays
return
universities
return
universities
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