def get_theme(request):

    this_theme = hz_themes.get_default_theme()
    try:
        theme = request.COOKIES[hz_themes.get_theme_cookie_name()]
        for each_theme in hz_themes.get_themes():
            if theme == each_theme[0]:
                this_theme = each_theme[0]
    except __HOLE__:
        pass

    return this_theme
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/templatetags/themes.py/get_theme