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
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
def __get_page_list(context): ps = model.get_pages(published_only=False) return { '__view__' : 'manage_page_list', 'ps' : ps, }
def __get_page_list(context): ps = model.get_pages(published_only=False) return { '__view__': 'manage_page_list', 'ps': ps, }