Mercurial > piecrust2
comparison piecrust/data/linker.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 | 879fe1457e48 |
children | d9d5c5de02a8 |
comparison
equal
deleted
inserted
replaced
241:85a6c7ba5e3b | 242:f130365568ff |
---|---|
1 import logging | 1 import logging |
2 import collections | 2 import collections |
3 from piecrust.data.base import PaginationData, IPaginationSource | 3 from piecrust.data.base import PaginationData |
4 from piecrust.data.iterators import PageIterator | 4 from piecrust.data.iterators import PageIterator |
5 from piecrust.sources.base import IListableSource, build_pages | 5 from piecrust.sources.base import build_pages |
6 from piecrust.sources.interfaces import IPaginationSource, IListableSource | |
6 | 7 |
7 | 8 |
8 logger = logging.getLogger(__name__) | 9 logger = logging.getLogger(__name__) |
9 | 10 |
10 | 11 |