Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
2a6de622
Commit
2a6de622
authored
Feb 10, 2017
by
Clinton Blackburn
Committed by
Clinton Blackburn
Feb 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validating import order using isort
parent
2b61f239
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
Makefile
+1
-0
course_discovery/apps/api/pagination.py
+2
-0
No files found.
Makefile
View file @
2a6de622
...
@@ -42,6 +42,7 @@ test: clean ## Run tests and generate coverage report
...
@@ -42,6 +42,7 @@ test: clean ## Run tests and generate coverage report
coverage report
coverage report
quality
:
##
Run pep8 and Pylint
quality
:
##
Run pep8 and Pylint
isort
--check-only
--recursive
acceptance_tests/ course_discovery/
pep8
--config
=
.pep8 acceptance_tests course_discovery
*
.py
pep8
--config
=
.pep8 acceptance_tests course_discovery
*
.py
pylint
--rcfile
=
pylintrc acceptance_tests course_discovery
*
.py
pylint
--rcfile
=
pylintrc acceptance_tests course_discovery
*
.py
...
...
course_discovery/apps/api/pagination.py
View file @
2a6de622
...
@@ -11,6 +11,7 @@ class ProxiedCall:
...
@@ -11,6 +11,7 @@ class ProxiedCall:
Utility class used in conjunction with ProxiedPagination to route method
Utility class used in conjunction with ProxiedPagination to route method
calls between pagination classes.
calls between pagination classes.
"""
"""
def
__init__
(
self
,
proxy
,
method_name
):
def
__init__
(
self
,
proxy
,
method_name
):
self
.
proxy
=
proxy
self
.
proxy
=
proxy
self
.
method_name
=
method_name
self
.
method_name
=
method_name
...
@@ -66,6 +67,7 @@ class ProxiedPagination:
...
@@ -66,6 +67,7 @@ class ProxiedPagination:
If no query parameters are passed, proxies to LimitOffsetPagination by default.
If no query parameters are passed, proxies to LimitOffsetPagination by default.
"""
"""
def
__init__
(
self
):
def
__init__
(
self
):
page_number_paginator
=
PageNumberPagination
()
page_number_paginator
=
PageNumberPagination
()
limit_offset_paginator
=
LimitOffsetPagination
()
limit_offset_paginator
=
LimitOffsetPagination
()
...
...
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