Ejemplo n.º 1
0
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 KeyError:
        pass

    return this_theme
Ejemplo n.º 2
0
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 KeyError:
        pass

    return this_theme
Ejemplo n.º 3
0
def theme_cookie():
    return hz_themes.get_theme_cookie_name()
Ejemplo n.º 4
0
def theme_cookie():
    return hz_themes.get_theme_cookie_name()