-
-
-
-
-
-
reviewboard/settings.py (Diff revision 1) 'from settings_local import *' used; unable to detect undefined names
-
-
-
[OAuth2Provider] Add dependencies and urls to provide OAuth2 support for external services
Review Request #7897 — Created Jan. 20, 2016 and discarded
Added into list of installed apps package django-tool-kit which provides
end-points and basic logic to manage client applications. All the end-points
for OAuth2 authorization with external services is moved to /oauth2/.
All the tool to manage client applications is a part of preference menuAdded package django-tool-kit into setup.py so that it will get install
with ReviewBoard during setup time. Even though the lastest version is 0.10,
the chosen version is 0.9 in order to be compatible with Django 1.6.Note: please contact
lehoangminh@live.com
when you try to land the feature into master. I am more than happy to support the final integration
Manually tested the urls are setup correctly
Reran python setup.py develop
Description | From | Last Updated |
---|---|---|
The first import should be: from __future__ import unicode_literals |
|
|
Docstrings should be of the form: """Single line summary. Multi-line description. """ |
|
|
Blank line between these. |
|
|
Col: 5 E265 block comment should start with '# ' |
![]() |
|
Col: 9 W292 no newline at end of file |
![]() |
|
Unnecessary. |
|
|
We're only importing one set of views here. I think we should do: from oauth2_provider import views |
|
|
"Review Board" "OAuth" Missing a period. |
|
|
Single quotes. Same below. |
|
|
"OAuth" Also missing a period. |
|
|
Use patterns() |
|
|
No blank line here. |
|
|
Col: 2 W292 no newline at end of file |
![]() |
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
Missing a trailing comma. |
|
|
Please keep these imports in alphabetical order. |
|
|
Unnecessary comment. |
|
|
This isn't the right place for this. account/ URLs should go in reviewboard/accounts/urls.py. There, you can leave off the account/ … |
|
|
Col: 34 W292 no newline at end of file |
![]() |
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
Alphabetize these. |
|
|
This import doesn't need the as ... clause. When you do from x import y as y it is the … |
|
|
url(r'^preferences/oauth2/', include(apps_urlpatterns, namespace='oauth2_provider')) |
|
|
Why are we including this with a namespace? |
|
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
Should use url(). |
|
|
I might be wrong, but I think since we're just doing an include, you can put this up above where … |
|
|
Alignment issue here. |
|
|
No space after """. I'd also change this to "An OAuth2 client application registered by a user." |
|
|
"URL" and "users". |
|
|
Let's name this oauth2_apps_urlpatterns. |
|
|
Let's put the view on its own line, for consistency. |
|
|
Blank line between these. |
|
|
This should probably go before the reviewboard imports. Ours should be last. Also, reviewboard.oauth2 should be in alphabetical order. |
|
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
Can you document this? |
|
|
Should be listed in alphabetical order. |
|
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
No space after """. |
|
|
Blank line between these. |
|
|
Is this covered in a future change? (I'll find out in a moment I'm sure). If so, we'll want to … |
|
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |
|
'PIPELINE_CSS' imported but unused |
![]() |
|
'PIPELINE_JS' imported but unused |
![]() |
|
'django_reset' imported but unused |
![]() |
|
'from settings_local import *' used; unable to detect undefined names |
![]() |

-
-
reviewboard/oauth2/models.py (Diff revision 1) The first import should be:
from __future__ import unicode_literals
-
reviewboard/oauth2/models.py (Diff revision 1) Docstrings should be of the form:
"""Single line summary. Multi-line description. """
-
-
-
reviewboard/oauth2/urls.py (Diff revision 1) We're only importing one set of views here. I think we should do:
from oauth2_provider import views
-
-
-
-
-
-
-
-
-
reviewboard/urls.py (Diff revision 1) This isn't the right place for this.
account/
URLs should go inreviewboard/accounts/urls.py
. There, you can leave off theaccount/
prefix (because all URLs there will have it automatically prepended because of how they are included).

-
Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 2) 'from settings_local import *' used; unable to detect undefined names
-
-

-
Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 3) 'from settings_local import *' used; unable to detect undefined names
-
-
-
So I think you may be heading in the wrong direction here. You will probably want to expose setting OAuth2 configuration per-user via the API. You should ask Christian about this to double check.
-
-
reviewboard/accounts/urls.py (Diff revision 3) This import doesn't need the
as ...
clause. When you dofrom x import y as y
it is the same as doingfrom x import y
. -
reviewboard/accounts/urls.py (Diff revision 3) url(r'^preferences/oauth2/', include(apps_urlpatterns, namespace='oauth2_provider'))
-

-
Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 4) 'from settings_local import *' used; unable to detect undefined names
-
-

-
Tool: PEP8 Style Checker Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py Tool: Pyflakes Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 5) 'from settings_local import *' used; unable to detect undefined names
-
-
Change Summary:
Remove WIP, update discussion
Summary: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 6 (+80 -1) |

-
Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 6) 'from settings_local import *' used; unable to detect undefined names
-
-
Change Summary:
Add reviewer + Add prefix to RC
Summary: |
|
||||
---|---|---|---|---|---|
People: |
|
-
-
-
reviewboard/accounts/urls.py (Diff revision 6) I might be wrong, but I think since we're just doing an
include
, you can put this up above where we define the "preferences/" URL without having to worry about that view prefix argument topatterns
causing problems. -
-
reviewboard/oauth2/models.py (Diff revision 6) No space after
"""
.I'd also change this to "An OAuth2 client application registered by a user."
-
-
-
-
-
reviewboard/settings.py (Diff revision 6) This should probably go before the reviewboard imports. Ours should be last.
Also,
reviewboard.oauth2
should be in alphabetical order. -
-

-
Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 7) 'from settings_local import *' used; unable to detect undefined names
-
-
Change Summary:
Update oauth lib version and remove unessesary urls
Description: |
|
||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 8 (+44) |

-
Tool: Pyflakes Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 8) 'from settings_local import *' used; unable to detect undefined names
-
-
-
-
-
-
reviewboard/oauth2/models.py (Diff revision 8) Is this covered in a future change? (I'll find out in a moment I'm sure). If so, we'll want to make sure one change has all the fields needed for a given model.

-
Tool: Pyflakes Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
reviewboard/settings.py (Diff revision 9) 'from settings_local import *' used; unable to detect undefined names
Change Summary:
Adding reminder
Description: |
|
---|