コード例 #1
0
ファイル: mock.py プロジェクト: zworkb/cone.app
def default_layout(context):
    config = Layout()
    config.mainmenu = True
    config.mainmenu_fluid = False
    config.livesearch = True
    config.personaltools = True
    config.columns_fluid = False
    config.pathbar = True
    config.sidebar_left = ['navtree']
    config.sidebar_left_grid_width = 3
    config.content_grid_width = 9
    return config
コード例 #2
0
ファイル: __init__.py プロジェクト: SaiyaGin/cone.app
def default_layout(context):
    layout = Layout()
    layout.mainmenu = True
    layout.mainmenu_fluid = False
    layout.livesearch = True
    layout.personaltools = True
    layout.columns_fluid = False
    layout.pathbar = True
    layout.sidebar_left = ['navtree']
    layout.sidebar_left_grid_width = 3
    layout.content_grid_width = 9
    return layout
コード例 #3
0
def default_layout(context):
    layout = Layout()
    layout.mainmenu = True
    layout.mainmenu_fluid = False
    layout.livesearch = True
    layout.personaltools = True
    layout.columns_fluid = False
    layout.pathbar = True
    layout.sidebar_left = ['navtree']
    layout.sidebar_left_grid_width = 3
    layout.content_grid_width = 9
    return layout
コード例 #4
0
 def layout(self):
     layout = Layout()
     layout.mainmenu = True
     layout.mainmenu_fluid = False
     layout.livesearch = False
     layout.personaltools = False
     if authenticated_userid(get_current_request()):
         layout.personaltools = True
     layout.columns_fluid = False
     layout.pathbar = False
     layout.sidebar_left = []
     layout.content_grid_width = 12
     return layout