def user_export_all_tabular(request, username, filetype):
    
    uh = UserHistory(username)
    uh.load_if_possible()
    
    data = [(("Week", {"bold":True}),("Artist", {"bold":True}),("Plays", {"bold":True}))]
    for week, artists in uh.weeks.items():
        for artist, plays in artists.items():
            data.append((week, artist, plays))
    
    try:
        return as_filetype(data, filetype, filename="%s_all" % username)
    except __HOLE__:
        raise Http404("No such filetype")
dataset/ETHPy150Open andrewgodwin/lastgraph/lastgui/views.py/user_export_all_tabular