changeset 714:e4dcef2d5640

debug: Show more stuff pertaining to data providers in the debug window.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 20:44:44 -0700
parents d446029c9478
children a14371c5cda7
files piecrust/data/provider.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/data/provider.py	Thu May 26 20:44:18 2016 -0700
+++ b/piecrust/data/provider.py	Thu May 26 20:44:44 2016 -0700
@@ -191,6 +191,9 @@
 
 
 class BlogArchiveEntry(object):
+    debug_render = ['name', 'timestamp', 'posts']
+    debug_render_invoke = ['name', 'timestamp', 'posts']
+
     def __init__(self, page, name, timestamp):
         self.name = name
         self.timestamp = timestamp
@@ -215,6 +218,9 @@
 
 
 class BlogTaxonomyEntry(object):
+    debug_render = ['name', 'post_count', 'posts']
+    debug_render_invoke = ['name', 'post_count', 'posts']
+
     def __init__(self, page, source, property_value):
         self._page = page
         self._source = source