def list_press(self): if c.db_content_types: page = request.GET.get('page', 1) pagination = paginate.Page(DbContent.find_all_by_type("In the press"), page = page, items_per_page = 10) c.db_content_pages = pagination c.db_content_collection = pagination.items c.result = True else: c.result = False return render('/db_content/list_press.mako')
def list_news(self): if c.db_content_types: page = request.GET.get('page', 1) pagination = paginate.Page(DbContent.find_all_by_type("News"), page=page, items_per_page=10) c.db_content_pages = pagination c.db_content_collection = pagination.items c.result = True else: c.result = False return render('/db_content/list_news.mako')
def list_news(self): if c.db_content_types: page = 1 if request.GET.has_key('page'): page = request.GET['page'] pagination = paginate.Page(DbContent.find_all_by_type("News"), page = page, items_per_page = 10) c.db_content_pages = pagination c.db_content_collection = pagination.items c.result = True else: c.result = False return render('/db_content/list_news.mako')
def list_press(self): if c.db_content_types: page = 1 if request.GET.has_key('page'): page = request.GET['page'] pagination = paginate.Page( DbContent.find_all_by_type("In the press"), page=page, items_per_page=10) c.db_content_pages = pagination c.db_content_collection = pagination.items c.result = True else: c.result = False return render('/db_content/list_press.mako')