diff piecrust/sources/posts.py @ 6:f5ca5c5bed85

More Python 3 fixes, modularization, and new unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 16 Aug 2014 08:15:30 -0700
parents 474c9882decf
children 617191dec18e
line wrap: on
line diff
--- a/piecrust/sources/posts.py	Mon Aug 11 22:36:47 2014 -0700
+++ b/piecrust/sources/posts.py	Sat Aug 16 08:15:30 2014 -0700
@@ -6,6 +6,7 @@
 import datetime
 from piecrust import CONTENT_DIR
 from piecrust.sources.base import (PageSource, IPreparingSource,
+        SimplePaginationSourceMixin,
         PageNotFoundError, InvalidFileSystemEndpointError,
         PageFactory, MODE_CREATING)
 
@@ -13,7 +14,7 @@
 logger = logging.getLogger(__name__)
 
 
-class PostsSource(PageSource, IPreparingSource):
+class PostsSource(PageSource, IPreparingSource, SimplePaginationSourceMixin):
     PATH_FORMAT = None
 
     def __init__(self, app, name, config):