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
49fb9663
Commit
49fb9663
authored
Feb 16, 2015
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Pylint: C0202(bad-classmethod-argument)
parent
66f28fd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/instructor_task/subtasks.py
+3
-3
lms/djangoapps/shoppingcart/models.py
+1
-1
No files found.
lms/djangoapps/instructor_task/subtasks.py
View file @
49fb9663
...
...
@@ -165,7 +165,7 @@ class SubtaskStatus(object):
self
.
state
=
state
if
state
is
not
None
else
QUEUING
@classmethod
def
from_dict
(
self
,
d
):
def
from_dict
(
cls
,
d
):
"""Construct a SubtaskStatus object from a dict representation."""
options
=
dict
(
d
)
task_id
=
options
[
'task_id'
]
...
...
@@ -173,9 +173,9 @@ class SubtaskStatus(object):
return
SubtaskStatus
.
create
(
task_id
,
**
options
)
@classmethod
def
create
(
self
,
task_id
,
**
options
):
def
create
(
cls
,
task_id
,
**
options
):
"""Construct a SubtaskStatus object."""
return
self
(
task_id
,
**
options
)
return
cls
(
task_id
,
**
options
)
def
to_dict
(
self
):
"""
...
...
lms/djangoapps/shoppingcart/models.py
View file @
49fb9663
...
...
@@ -1930,7 +1930,7 @@ class Donation(OrderItem):
)
.
format
(
platform_name
=
settings
.
PLATFORM_NAME
)
@classmethod
def
_line_item_description
(
self
,
course_id
=
None
):
def
_line_item_description
(
cls
,
course_id
=
None
):
"""Create a line-item description for the donation.
Includes the course display name if provided.
...
...
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