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
3393f25f
Commit
3393f25f
authored
Nov 25, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6044 from stvstnfrd/pep8/syntax
Fix syntax-related PEP8 issues
parents
b009e4a5
ab4de714
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
10 deletions
+16
-10
common/djangoapps/django_comment_common/models.py
+5
-2
docs/en_us/developers/source/conf.py
+2
-1
docs/en_us/platform_api/source/conf.py
+2
-1
docs/shared/conf.py
+2
-1
lms/djangoapps/django_comment_client/base/tests.py
+2
-2
lms/djangoapps/django_comment_client/utils.py
+1
-1
lms/djangoapps/instructor/views/tools.py
+1
-1
scripts/all-tests.sh
+1
-1
No files found.
common/djangoapps/django_comment_common/models.py
View file @
3393f25f
...
...
@@ -67,8 +67,11 @@ class Role(models.Model):
def
inherit_permissions
(
self
,
role
):
# TODO the name of this method is a little bit confusing,
# since it's one-off and doesn't handle inheritance later
if
role
.
course_id
and
role
.
course_id
!=
self
.
course_id
:
logging
.
warning
(
"
%
s cannot inherit permissions from
%
s due to course_id inconsistency"
,
self
,
role
)
logging
.
warning
(
"
%
s cannot inherit permissions from
%
s due to course_id inconsistency"
,
self
,
role
,
)
for
per
in
role
.
permissions
.
all
():
self
.
add_permission
(
per
)
...
...
docs/en_us/developers/source/conf.py
View file @
3393f25f
...
...
@@ -4,8 +4,9 @@
# pylint: disable=W0212
# pylint: disable=W0613
import
sys
,
os
import
os
from
path
import
path
import
sys
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
...
...
docs/en_us/platform_api/source/conf.py
View file @
3393f25f
...
...
@@ -4,8 +4,9 @@
# pylint: disable=W0212
# pylint: disable=W0613
import
sys
,
os
import
os
from
path
import
path
import
sys
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
...
...
docs/shared/conf.py
View file @
3393f25f
...
...
@@ -21,7 +21,8 @@
#
# -----------------------------------------------------------------------------
import
sys
,
os
import
os
import
sys
BASEDIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
...
...
lms/djangoapps/django_comment_client/base/tests.py
View file @
3393f25f
...
...
@@ -1036,8 +1036,8 @@ class UsersEndpointTestCase(ModuleStoreTestCase, MockRequestSetupMixin):
response
=
self
.
make_request
(
username
=
"other"
)
self
.
assertEqual
(
response
.
status_code
,
404
)
content
=
json
.
loads
(
response
.
content
)
self
.
assert
True
(
content
.
has_key
(
"errors"
)
)
self
.
assert
False
(
content
.
has_key
(
"users"
)
)
self
.
assert
In
(
"errors"
,
content
)
self
.
assert
NotIn
(
"users"
,
content
)
@patch
(
'lms.lib.comment_client.utils.requests.request'
)
def
test_requires_matched_user_has_forum_content
(
self
,
mock_request
):
...
...
lms/djangoapps/django_comment_client/utils.py
View file @
3393f25f
...
...
@@ -123,7 +123,7 @@ def _filter_unstarted_categories(category_map):
def
_sort_map_entries
(
category_map
,
sort_alpha
):
things
=
[]
for
title
,
entry
in
category_map
[
"entries"
]
.
items
():
if
entry
[
"sort_key"
]
==
None
and
sort_alpha
:
if
entry
[
"sort_key"
]
is
None
and
sort_alpha
:
entry
[
"sort_key"
]
=
title
things
.
append
((
title
,
entry
))
for
title
,
category
in
category_map
[
"subcategories"
]
.
items
():
...
...
lms/djangoapps/instructor/views/tools.py
View file @
3393f25f
...
...
@@ -59,7 +59,7 @@ def bulk_email_is_enabled_for_course(course_id):
3. Bulk email is enabled for the course.
"""
bulk_email_enabled_globally
=
(
settings
.
FEATURES
[
'ENABLE_INSTRUCTOR_EMAIL'
]
==
True
)
bulk_email_enabled_globally
=
(
settings
.
FEATURES
[
'ENABLE_INSTRUCTOR_EMAIL'
]
is
True
)
is_studio_course
=
(
modulestore
()
.
get_modulestore_type
(
course_id
)
!=
ModuleStoreEnum
.
Type
.
xml
)
bulk_email_enabled_for_course
=
CourseAuthorization
.
instructor_email_enabled
(
course_id
)
...
...
scripts/all-tests.sh
View file @
3393f25f
...
...
@@ -57,7 +57,7 @@ set -e
# Violations thresholds for failing the build
PYLINT_THRESHOLD
=
4600
PEP8_THRESHOLD
=
1
5
PEP8_THRESHOLD
=
1
0
source
$HOME
/jenkins_env
...
...
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