Mercurial > piecrust2
diff piecrust/sources/blogarchives.py @ 905:1d0364614665
internal: Sources can cache their pages in addition to their items.
Added `getAllPages` to content sources to prevent having to look up cached
page objects in the page repository all the time.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 23 Jul 2017 08:26:57 -0700 |
parents | d6d35b2efd04 |
children | 8adc27285d93 |
line wrap: on
line diff
--- a/piecrust/sources/blogarchives.py Sun Jul 23 08:25:45 2017 -0700 +++ b/piecrust/sources/blogarchives.py Sun Jul 23 08:26:57 2017 -0700 @@ -108,11 +108,7 @@ return month_index = {} - src = self._inner_source - app = src.app - for item in self._inner_source.getAllContents(): - page = app.getPage(src, item) - + for page in self._inner_source.getAllPages(): if page.datetime.year != self._year: continue