yarn/views.py
def _get_threads_for_current_user(request):
    """ Returns a list of all threads the user has access to """

    person = Person.objects.get(login_name = request.user.username)
    if not person:
        person = Person.objects.create(login_name = request.user.username)

    data = data_for_thread_list(person)

    return HttpResponse(json.dumps(data), { "Content-type": "application/json" })
 Returns a list of all threads the user has access to 
Returns a list of all threads the user has access to
Returns a list of all threads the user has access to
def _get_threads_for_current_user(request):
    person = Person.objects.get(login_name = request.user.username)
    if not person:
        person = Person.objects.create(login_name = request.user.username)
    data = data_for_thread_list(person)
    return HttpResponse(json.dumps(data), { "Content-type": "application/json" })
def _get_threads_for_current_user ( request ) : person = Person . objects . get ( login_name = request . user . username ) if not person : person = Person . objects . create ( login_name = request . user . username ) data = data_for_thread_list ( person ) return HttpResponse ( json . dumps ( data ) , { "Content-type" : "application/json" } )
Returns a list of all threads the user has access to
Returns a list of all threads the user has access to
""" Returns a list of all threads the user has access to """
request