f05a915d533e39eff4fd2ff03657074ec420b46e,apps/feed_import/views.py,,reader_callback,#Any#,126

Before Change


        if is_modal or True:
            return render_to_response("social/social_connect.xhtml", {}, context_instance=RequestContext(request))
        else:
            return HttpResponseRedirect(reverse("index"))

    return HttpResponseRedirect(reverse("import-signup"))
    

After Change


        )
    FLOW.redirect_uri = STEP2_URI
    
    try:
        credential = FLOW.step2_exchange(request.REQUEST)
    except FlowExchangeError:
        logging.info(" ***> [%s] Bad token from Google Reader." % (request.user,))
        return render_to_response("social/social_connect.xhtml", {
            "error": "There was an error trying to import from Google Reader. Trying again will probably fix the issue."
        }, context_instance=RequestContext(request))
    
    user_token = None
    if request.user.is_authenticated():
        user_token = OAuthToken.objects.filter(user=request.user).order_by("-created_date")
    if not user_token:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: samuelclay/NewsBlur
Commit Name: f05a915d533e39eff4fd2ff03657074ec420b46e
Time: 2012-08-12
Author: samuel@ofbrooklyn.com
File Name: apps/feed_import/views.py
Class Name:
Method Name: reader_callback


Project Name: comic/grand-challenge.org
Commit Name: 4272398c0f1aebc3e21df81beba69c3a171fa567
Time: 2012-11-27
Author: w.s.kerkstra@gmail.com
File Name: django/filetransfers/views.py
Class Name:
Method Name: delete_handler


Project Name: comic/grand-challenge.org
Commit Name: 099b3eab0b64801e0a0bb54c5a7c8189baad0222
Time: 2012-11-27
Author: w.s.kerkstra@gmail.com
File Name: django/filetransfers/views.py
Class Name:
Method Name: delete_handler


Project Name: comic/grand-challenge.org
Commit Name: 967287790fefdc91606ec7b45566a41648353563
Time: 2019-01-02
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/core/templatetags/grandchallenge_tags.py
Class Name: InsertGraphNode
Method Name: render