diff piecrust/routing.py @ 483:64e1cd71b30b

serve: Try to serve taxonomy pages after all normal pages have failed.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 21 Jul 2015 22:42:47 -0700
parents cce911be024d
children 16e705c58cae
line wrap: on
line diff
--- a/piecrust/routing.py	Tue Jul 21 22:42:05 2015 -0700
+++ b/piecrust/routing.py	Tue Jul 21 22:42:47 2015 -0700
@@ -87,6 +87,10 @@
         self._createTemplateFunc(cfg.get('func'))
 
     @property
+    def is_taxonomy_route(self):
+        return self.taxonomy_name is not None
+
+    @property
     def source(self):
         for src in self.app.sources:
             if src.name == self.source_name: