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
06d680cd
Commit
06d680cd
authored
May 21, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use Empty directly, let the manager handle it
parent
9dc48c00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
common/djangoapps/student/roles.py
+1
-4
No files found.
common/djangoapps/student/roles.py
View file @
06d680cd
...
...
@@ -72,7 +72,7 @@ class RoleBase(AccessRole):
"""
Roles by type (e.g., instructor, beta_user) and optionally org, course_key
"""
def
__init__
(
self
,
role_name
,
org
=
''
,
course_key
=
CourseKeyField
.
Empty
):
def
__init__
(
self
,
role_name
,
org
=
''
,
course_key
=
None
):
"""
Create role from required role_name w/ optional org and course_key. You may just provide a role
name if it's a global role (not constrained to an org or course). Provide org if constrained to
...
...
@@ -81,9 +81,6 @@ class RoleBase(AccessRole):
"""
super
(
RoleBase
,
self
)
.
__init__
()
if
course_key
is
None
:
raise
TypeError
(
'course_key must be CourseKeyField.Empty or a valid CourseKey'
)
self
.
org
=
org
self
.
course_key
=
course_key
self
.
_role_name
=
role_name
...
...
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