comparison MoinMoin/auth/__init__.py @ 6078:35473fe0967d

line wrap at 120 chars instead of 80
author 'Karl O. Pinc' <kop@meme.com>
date Tue, 16 Sep 2014 08:40:47 -0500
parents 3f7f4cef7c2a
children
comparison
equal deleted inserted replaced
6077:464b6cd93ba3 6078:35473fe0967d
472 if 'setuid' in request.session and userobj and userobj.isSuperUser(): 472 if 'setuid' in request.session and userobj and userobj.isSuperUser():
473 old_user = userobj 473 old_user = userobj
474 uid = request.session['setuid'] 474 uid = request.session['setuid']
475 userobj = user.User(request, uid, auth_method='setuid') 475 userobj = user.User(request, uid, auth_method='setuid')
476 userobj.valid = True 476 userobj.valid = True
477 log_attempt("auth/login (setuid from %r)" % old_user.name, 477 log_attempt("auth/login (setuid from %r)" % old_user.name, True, request, userobj.name)
478 True, request, userobj.name)
479 logging.debug("setup_suid returns %r, %r" % (userobj, old_user)) 478 logging.debug("setup_suid returns %r, %r" % (userobj, old_user))
480 return (userobj, old_user) 479 return (userobj, old_user)
481 480
482 def setup_from_session(request, session): 481 def setup_from_session(request, session):
483 userobj = None 482 userobj = None