comparison piecrust/sources/pageref.py @ 711:ab5c6a8ae90a

bake: Replace hard-coded taxonomy support with "generator" system. * Taxonomies are now implemented one or more `TaxonomyGenerator`s. * A `BlogArchivesGenerator` stub is there but non-functional.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 19:52:47 -0700
parents e7b865f8f335
children
comparison
equal deleted inserted replaced
710:e85f29b28b84 711:ab5c6a8ae90a
29 self.app = app 29 self.app = app
30 self._page_ref = page_ref 30 self._page_ref = page_ref
31 self._hits = None 31 self._hits = None
32 self._first_valid_hit_index = self._INDEX_NEEDS_LOADING 32 self._first_valid_hit_index = self._INDEX_NEEDS_LOADING
33 self._exts = list(app.config.get('site/auto_formats').keys()) 33 self._exts = list(app.config.get('site/auto_formats').keys())
34
35 def __str__(self):
36 return self._page_ref
34 37
35 @property 38 @property
36 def exists(self): 39 def exists(self):
37 try: 40 try:
38 self._checkHits() 41 self._checkHits()