示例#1
0
def index():
    from handlers.home import Home
    home = Home(['featured', 'ads'])
    home.context.left_sidebar_enabled = True
    home.context.right_sidebar_enabled = True
    home.context.header_enabled = True
    return home.render("app/home")
示例#2
0
文件: home.py 项目: rjmolesa/Movuca
def index():
    from handlers.home import Home
    home = Home(['featured', 'featured_members', 'ads', 'homeblocks'])
    home.context.left_sidebar_enabled = True
    home.context.right_sidebar_enabled = True
    home.context.header_enabled = not request.user_agent().is_mobile
    return home.render("app/home")
示例#3
0
文件: home.py 项目: pigaov10/Movuca
def index():
    from handlers.home import Home
    home = Home(['featured', 'featured_members', 'homeblocks', 'articles'])
    home.context.left_sidebar_enabled = True
    home.context.right_sidebar_enabled = True
    home.context.header_enabled = True
    home.context.toparea_enabled = True
    return home.render("app/home")
示例#4
0
def index():
    #redirect(URL('home', 'index'))
    from handlers.home import Home
    home = Home(['featured', 'featured_members', 'ads', 'homeblocks', 'articles'])
    home.context.left_sidebar_enabled = True
    home.context.right_sidebar_enabled = True
    home.context.header_enabled = True
    home.context.toparea_enabled = True
    theme_name = home.context.theme_name
    return home.render("app/home")
示例#5
0
def index():
    #redirect(URL('home', 'index'))
    from handlers.home import Home
    home = Home(
        ['featured', 'featured_members', 'ads', 'homeblocks', 'articles'])
    home.context.left_sidebar_enabled = True
    home.context.right_sidebar_enabled = True
    home.context.header_enabled = True
    home.context.toparea_enabled = True
    theme_name = home.context.theme_name
    return home.render("app/home")
示例#6
0
def index():
    from handlers.home import Home
    home = Home()
    home.context.left_sidebar_enabled = True
    home.context.right_sidebar_enabled = True
    return home.render("app/home")