[Python-modules-commits] [python-social-auth] 20/61: Link docs and PEP8

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.13
in repository python-social-auth.

commit 1c4f58246e1bf9e22542f29ed238e20491c7800b
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Wed Jul 22 12:58:28 2015 -0300

    Link docs and PEP8
---
 docs/backends/index.rst |  1 +
 social/backends/orbi.py | 13 ++++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/docs/backends/index.rst b/docs/backends/index.rst
index ad0452a..9b6e5de 100644
--- a/docs/backends/index.rst
+++ b/docs/backends/index.rst
@@ -100,6 +100,7 @@ Social backends
    nationbuilder
    odnoklassnikiru
    openstreetmap
+   orbi
    persona
    pixelpin
    pocket
diff --git a/social/backends/orbi.py b/social/backends/orbi.py
index 113cb48..ab6c13e 100644
--- a/social/backends/orbi.py
+++ b/social/backends/orbi.py
@@ -22,10 +22,11 @@ class OrbiOAuth2(BaseOAuth2):
         return response.get('id')
 
     def get_user_details(self, response):
-        fullname, first_name, last_name = self.get_user_names(response.get('name', ''),
-                                                              response.get('first_name', ''),
-                                                              response.get('last_name', ''))
-
+        fullname, first_name, last_name = self.get_user_names(
+            response.get('name', ''),
+            response.get('first_name', ''),
+            response.get('last_name', '')
+        )
         return {
             'username': response.get('username', response.get('name')),
             'email': response.get('email', ''),
@@ -36,4 +37,6 @@ class OrbiOAuth2(BaseOAuth2):
 
     def user_data(self, access_token, *args, **kwargs):
         """Load user data from orbi"""
-        return self.get_json('https://login.orbi.kr/oauth/user/get', params={'access_token': access_token})
+        return self.get_json('https://login.orbi.kr/oauth/user/get', params={
+            'access_token': access_token
+        })

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list