#NEWLINE# def login_begin( request ) : #NEWLINE# #INDENT# redirect_to = request . REQUEST . get ( 'next' , '/' ) #NEWLINE# is_first_login_ever = OpenIDBackend . is_first_login_ever ( ) #NEWLINE# request . session . set_test_cookie ( ) #NEWLINE# openid_url = getattr ( settings , 'OPENID_SSO_SERVER_URL' , None ) #NEWLINE# identity_url_prefix = getattr ( settings , 'OPENID_IDENTITY_URL_PREFIX' , None ) #NEWLINE# if ( openid_url is not None ) : #NEWLINE# #INDENT# if ( request . method == 'GET' ) : #NEWLINE# #INDENT# return render_to_response ( 'openid-login.html' , { #NEWLINE# #INDENT# 'action' : urlresolvers . reverse ( 'openid-login' ) , #NEWLINE# 'next' : redirect_to , #NEWLINE# 'first_login_ever' : is_first_login_ever , #NEWLINE# 'hide_field' : True , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) ) #NEWLINE# #UNINDENT# #UNINDENT# return django_login_begin ( request , template_name = 'openid-login.html' , form_class = OpenIDLoginFormExt )