diff piecrust/data/base.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 eaf18442bff8
children da5e6e00fb41
line wrap: on
line diff
--- a/piecrust/data/base.py	Mon Feb 16 08:25:08 2015 -0800
+++ b/piecrust/data/base.py	Wed Feb 18 18:35:03 2015 -0800
@@ -7,29 +7,6 @@
 logger = logging.getLogger(__name__)
 
 
-class IPaginationSource(object):
-    """ Defines the interface for a source that can be used as the data
-        for an iterator or a pagination.
-    """
-    def getItemsPerPage(self):
-        raise NotImplementedError()
-
-    def getSourceIterator(self):
-        raise NotImplementedError()
-
-    def getSorterIterator(self, it):
-        raise NotImplementedError()
-
-    def getTailIterator(self, it):
-        raise NotImplementedError()
-
-    def getPaginationFilter(self, page):
-        raise NotImplementedError()
-
-    def getSettingAccessor(self):
-        raise NotImplementedError()
-
-
 class LazyPageConfigData(object):
     """ An object that represents the configuration header of a page,
         but also allows for additional data. It's meant to be exposed