diff 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
line wrap: on
line diff
--- a/piecrust/sources/posts.py	Mon Feb 16 08:25:08 2015 -0800
+++ b/piecrust/sources/posts.py	Wed Feb 18 18:35:03 2015 -0800
@@ -4,10 +4,12 @@
 import glob
 import logging
 import datetime
-from piecrust.sources.base import (PageSource, IPreparingSource,
-        SimplePaginationSourceMixin,
-        PageNotFoundError, InvalidFileSystemEndpointError,
-        PageFactory, MODE_CREATING, MODE_PARSING)
+from piecrust.sources.base import (
+        PageSource, InvalidFileSystemEndpointError, PageFactory,
+        MODE_CREATING, MODE_PARSING)
+from piecrust.sources.interfaces import IPreparingSource
+from piecrust.sources.mixins import SimplePaginationSourceMixin
+from piecrust.sources.pageref import PageNotFoundError
 
 
 logger = logging.getLogger(__name__)