Exemple #1
0
def get_navigation():
    '''
    Get navigation menu.
    '''
    L = [('blog', '/',)]
    pages = model.get_pages(True)
    for page in pages:
        L.append((page.title, '/page/%s' % page.id,))
    return L
Exemple #2
0
def get_navigation():
    '''
    Get navigation menu.
    '''
    L = [(
        'blog',
        '/',
    )]
    pages = model.get_pages(True)
    for page in pages:
        L.append((
            page.title,
            '/page/%s' % page.id,
        ))
    return L
Exemple #3
0
def __get_page_list(context):
    ps = model.get_pages(published_only=False)
    return {
            '__view__' : 'manage_page_list',
            'ps' : ps,
    }
Exemple #4
0
def __get_page_list(context):
    ps = model.get_pages(published_only=False)
    return {
        '__view__': 'manage_page_list',
        'ps': ps,
    }