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
89b6adad
Commit
89b6adad
authored
Nov 30, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/pylint: disable=E1102/pylint: disable=not-callable/
parent
aa7cc2b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
lms/djangoapps/bulk_email/tasks.py
+1
-1
lms/djangoapps/courseware/tests/test_model_data.py
+1
-1
lms/djangoapps/instructor_task/tasks.py
+6
-6
No files found.
lms/djangoapps/bulk_email/tasks.py
View file @
89b6adad
...
...
@@ -252,7 +252,7 @@ def perform_delegate_email_batches(entry_id, course_id, task_input, action_name)
return
progress
@task
(
default_retry_delay
=
settings
.
BULK_EMAIL_DEFAULT_RETRY_DELAY
,
max_retries
=
settings
.
BULK_EMAIL_MAX_RETRIES
)
# pylint: disable=
E1102
@task
(
default_retry_delay
=
settings
.
BULK_EMAIL_DEFAULT_RETRY_DELAY
,
max_retries
=
settings
.
BULK_EMAIL_MAX_RETRIES
)
# pylint: disable=
not-callable
def
send_course_email
(
entry_id
,
email_id
,
to_list
,
global_email_context
,
subtask_status_dict
):
"""
Sends an email to a list of recipients.
...
...
lms/djangoapps/courseware/tests/test_model_data.py
View file @
89b6adad
...
...
@@ -219,7 +219,7 @@ class StorageTestBase(object):
"""
# Disable pylint warnings that arise because of the way the child classes call
# this base class -- pylint's static analysis can't keep up with it.
# pylint: disable=no-member,
E1102
# pylint: disable=no-member,
not-callable
factory
=
None
scope
=
None
...
...
lms/djangoapps/instructor_task/tasks.py
View file @
89b6adad
...
...
@@ -36,7 +36,7 @@ from instructor_task.tasks_helper import (
from
bulk_email.tasks
import
perform_delegate_email_batches
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
E1102
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
not-callable
def
rescore_problem
(
entry_id
,
xmodule_instance_args
):
"""Rescores a problem in a course, for all students or one specific student.
...
...
@@ -67,7 +67,7 @@ def rescore_problem(entry_id, xmodule_instance_args):
return
run_main_task
(
entry_id
,
visit_fcn
,
action_name
)
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
E1102
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
not-callable
def
reset_problem_attempts
(
entry_id
,
xmodule_instance_args
):
"""Resets problem attempts to zero for a particular problem for all students in a course.
...
...
@@ -89,7 +89,7 @@ def reset_problem_attempts(entry_id, xmodule_instance_args):
return
run_main_task
(
entry_id
,
visit_fcn
,
action_name
)
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
E1102
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
not-callable
def
delete_problem_state
(
entry_id
,
xmodule_instance_args
):
"""Deletes problem state entirely for all students on a particular problem in a course.
...
...
@@ -111,7 +111,7 @@ def delete_problem_state(entry_id, xmodule_instance_args):
return
run_main_task
(
entry_id
,
visit_fcn
,
action_name
)
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
E1102
@task
(
base
=
BaseInstructorTask
)
# pylint: disable=
not-callable
def
send_bulk_course_email
(
entry_id
,
_xmodule_instance_args
):
"""Sends emails to recipients enrolled in a course.
...
...
@@ -132,7 +132,7 @@ def send_bulk_course_email(entry_id, _xmodule_instance_args):
return
run_main_task
(
entry_id
,
visit_fcn
,
action_name
)
@task
(
base
=
BaseInstructorTask
,
routing_key
=
settings
.
GRADES_DOWNLOAD_ROUTING_KEY
)
# pylint: disable=
E1102
@task
(
base
=
BaseInstructorTask
,
routing_key
=
settings
.
GRADES_DOWNLOAD_ROUTING_KEY
)
# pylint: disable=
not-callable
def
calculate_grades_csv
(
entry_id
,
xmodule_instance_args
):
"""
Grade a course and push the results to an S3 bucket for download.
...
...
@@ -143,7 +143,7 @@ def calculate_grades_csv(entry_id, xmodule_instance_args):
return
run_main_task
(
entry_id
,
task_fn
,
action_name
)
@task
(
base
=
BaseInstructorTask
,
routing_key
=
settings
.
GRADES_DOWNLOAD_ROUTING_KEY
)
# pylint: disable=
E1102
@task
(
base
=
BaseInstructorTask
,
routing_key
=
settings
.
GRADES_DOWNLOAD_ROUTING_KEY
)
# pylint: disable=
not-callable
def
calculate_students_features_csv
(
entry_id
,
xmodule_instance_args
):
"""
Compute student profile information for a course and upload the
...
...
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