[Python-modules-commits] [python-social-auth] 130/322: login_user takes 3 parameters

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:12:58 UTC 2016


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

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

commit 2b6d9696425eb3c176470e45785f50a3fee575e4
Author: Motoki Naruse <motoki at naru.se>
Date:   Sat Feb 21 16:55:20 2015 +0900

    login_user takes 3 parameters
    
    And `strategy.request` is function. I don't know this is depending on environment or is not depending on environment.
    
    I'm useing
    * Python 3.4.0
    * Pyramid 1.5.2
---
 examples/pyramid_example/example/auth.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/pyramid_example/example/auth.py b/examples/pyramid_example/example/auth.py
index 831de56..98526f2 100644
--- a/examples/pyramid_example/example/auth.py
+++ b/examples/pyramid_example/example/auth.py
@@ -5,8 +5,8 @@ from social.apps.pyramid_app.utils import backends
 from example.models import DBSession, User
 
 
-def login_user(strategy, user):
-    strategy.request.session['user_id'] = user.id
+def login_user(strategy, user, user_social_auth):
+    strategy.strategy.session_set('user_id', user.id)
 
 
 def login_required(request):

-- 
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