Mercurial > piecrust2
diff piecrust/data/paginator.py @ 242:f130365568ff
internal: Code reorganization to put less stuff in `sources.base`.
Interfaces that sources can implement are in `sources.interfaces`. The default
page source is in `sources.default`. The `SimplePageSource` is gone since most
subclasses only wanted to do *some* stuff the same, but *lots* of stuff
slightly different. I may have to revisit the code to extract exactly the code
that's in common.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 18 Feb 2015 18:35:03 -0800 |
parents | dc8a6ff88f37 |
children | 8c0c53a315ae |
line wrap: on
line diff
--- a/piecrust/data/paginator.py Mon Feb 16 08:25:08 2015 -0800 +++ b/piecrust/data/paginator.py Wed Feb 18 18:35:03 2015 -0800 @@ -1,9 +1,9 @@ import math import logging from werkzeug.utils import cached_property -from piecrust.data.base import IPaginationSource from piecrust.data.filters import PaginationFilter from piecrust.data.iterators import PageIterator +from piecrust.sources.interfaces import IPaginationSource logger = logging.getLogger(__name__)