From 673fcaed9768cda005dfe50e49a37ccd15cc9b3f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 16 Aug 2015 19:52:51 -0500 Subject: [PATCH] Hard-code old grid pagecount settings, to avoid `edbob.config`. --- tailbone/grids/alchemy.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tailbone/grids/alchemy.py b/tailbone/grids/alchemy.py index 24527eb8..7b32069a 100644 --- a/tailbone/grids/alchemy.py +++ b/tailbone/grids/alchemy.py @@ -39,7 +39,6 @@ from webhelpers.html import HTML import formalchemy -import edbob from edbob.util import prettify from .core import Grid @@ -107,13 +106,7 @@ class AlchemyGrid(Grid): yield row def page_count_options(self): - options = edbob.config.get('edbob.pyramid', 'grid.page_count_options') - if options: - options = options.split(',') - options = [int(x.strip()) for x in options] - else: - options = [5, 10, 20, 50, 100] - return options + return [5, 10, 20, 50, 100] def page_links(self): return self.pager.pager(self.pager_format,