@view_config(renderer='login.mak', route_name='twit_sign')
def twit_sign(request):
    from raggregate.login_adapters import twitter
    if 'oauth_verifier' not in request.session['safe_params']:
        auth_toks = twitter.start_auth(request)
        request.session['tmp_tok_store'] = auth_toks
        return HTTPFound(auth_toks['auth_url'])
    else:
        twit_auth = twitter.complete_auth(request, request.session['tmp_tok_store'])
        del request.session['tmp_tok_store']
        try:
            users.login_user(request, twit_auth['u'], None, bypass_password = True)
        except:
            request.session['last_login_status'] = 'Sorry, your password was wrong.'
            #raise
        return HTTPFound('/post')
dataset/ETHPy150Open sjuxax/raggregate/raggregate/views/user.py/twit_sign/original