@login_notrequired
def show_login_page(request, login_errors=False):
 redirect_to = request.REQUEST.get('next', '/')
 is_first_login_ever = OAuthBackend.is_first_login_ever()
 request.session.set_test_cookie()
 return render('oauth-login.mako', request, {'action': urlresolvers.reverse('oauth_login'), 'next': redirect_to, 'first_login_ever': is_first_login_ever, 'login_errors': ((request.method == 'POST') or login_errors), 'socialGoogle': ((liboauth.conf.CONSUMER_KEY_GOOGLE.get() != '') and (liboauth.conf.CONSUMER_SECRET_GOOGLE.get() != '')), 'socialFacebook': ((liboauth.conf.CONSUMER_KEY_FACEBOOK.get() != '') and (liboauth.conf.CONSUMER_SECRET_FACEBOOK.get() != '')), 'socialLinkedin': ((liboauth.conf.CONSUMER_KEY_LINKEDIN.get() != '') and (liboauth.conf.CONSUMER_SECRET_LINKEDIN.get() != '')), 'socialTwitter': ((liboauth.conf.CONSUMER_KEY_TWITTER.get() != '') and (liboauth.conf.CONSUMER_SECRET_TWITTER.get() != ''))})

@ login_notrequired def show_login_page ( request , login_errors = False ) : redirect_to = request . REQUEST . get ( 'next' , '/' ) is_first_login_ever = OAuthBackend . is_first_login_ever ( ) request . session . set_test_cookie ( ) return render ( 'oauth-login.mako' , request , { 'action' : urlresolvers . reverse ( 'oauth_login' ) , 'next' : redirect_to , 'first_login_ever' : is_first_login_ever , 'login_errors' : ( ( request . method == 'POST' ) or login_errors ) , 'socialGoogle' : ( ( liboauth . conf . CONSUMER_KEY_GOOGLE . get ( ) != '' ) and ( liboauth . conf . CONSUMER_SECRET_GOOGLE . get ( ) != '' ) ) , 'socialFacebook' : ( ( liboauth . conf . CONSUMER_KEY_FACEBOOK . get ( ) != '' ) and ( liboauth . conf . CONSUMER_SECRET_FACEBOOK . get ( ) != '' ) ) , 'socialLinkedin' : ( ( liboauth . conf . CONSUMER_KEY_LINKEDIN . get ( ) != '' ) and ( liboauth . conf . CONSUMER_SECRET_LINKEDIN . get ( ) != '' ) ) , 'socialTwitter' : ( ( liboauth . conf . CONSUMER_KEY_TWITTER . get ( ) != '' ) and ( liboauth . conf . CONSUMER_SECRET_TWITTER . get ( ) != '' ) ) } )
used by the non-jframe login .