comparison piecrust/sources/posts.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 438509f12332
children ba857c693c72
comparison
equal deleted inserted replaced
241:85a6c7ba5e3b 242:f130365568ff
2 import os.path 2 import os.path
3 import re 3 import re
4 import glob 4 import glob
5 import logging 5 import logging
6 import datetime 6 import datetime
7 from piecrust.sources.base import (PageSource, IPreparingSource, 7 from piecrust.sources.base import (
8 SimplePaginationSourceMixin, 8 PageSource, InvalidFileSystemEndpointError, PageFactory,
9 PageNotFoundError, InvalidFileSystemEndpointError, 9 MODE_CREATING, MODE_PARSING)
10 PageFactory, MODE_CREATING, MODE_PARSING) 10 from piecrust.sources.interfaces import IPreparingSource
11 from piecrust.sources.mixins import SimplePaginationSourceMixin
12 from piecrust.sources.pageref import PageNotFoundError
11 13
12 14
13 logger = logging.getLogger(__name__) 15 logger = logging.getLogger(__name__)
14 16
15 17