Mercurial > piecrust2
comparison piecrust/commands/builtin/scaffolding.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 | d5b7c2a4ec9d |
children | dd25bd3ce1f9 |
comparison
equal
deleted
inserted
replaced
241:85a6c7ba5e3b | 242:f130365568ff |
---|---|
7 import logging | 7 import logging |
8 import textwrap | 8 import textwrap |
9 from piecrust import RESOURCES_DIR | 9 from piecrust import RESOURCES_DIR |
10 from piecrust.chefutil import print_help_item | 10 from piecrust.chefutil import print_help_item |
11 from piecrust.commands.base import ExtendableChefCommand, ChefCommandExtension | 11 from piecrust.commands.base import ExtendableChefCommand, ChefCommandExtension |
12 from piecrust.sources.base import IPreparingSource, MODE_CREATING | 12 from piecrust.sources.base import MODE_CREATING |
13 from piecrust.sources.interfaces import IPreparingSource | |
13 from piecrust.uriutil import multi_replace | 14 from piecrust.uriutil import multi_replace |
14 | 15 |
15 | 16 |
16 logger = logging.getLogger(__name__) | 17 logger = logging.getLogger(__name__) |
17 | 18 |