diff piecrust/sources/mixins.py @ 260:07b4b8484c0a

sources: Use `posts_*` and `items_*` settings more appropriately. The `items_*` settings are the generic ones, and the `posts_*` are only used with the default content model.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 23 Feb 2015 21:19:20 -0800
parents f130365568ff
children 8c0c53a315ae
line wrap: on
line diff
--- a/piecrust/sources/mixins.py	Sun Feb 22 22:03:54 2015 -0800
+++ b/piecrust/sources/mixins.py	Mon Feb 23 21:19:20 2015 -0800
@@ -66,7 +66,7 @@
 
     def getPaginationFilter(self, page):
         conf = (page.config.get('items_filters') or
-                page.app.config.get('site/items_filters'))
+                self.config.get('items_filters'))
         if conf == 'none' or conf == 'nil' or conf == '':
             conf = None
         if conf is not None: