diff piecrust/sources/autoconfig.py @ 989:8adc27285d93

bake: Big pass on bake performance. - Reduce the amount of data passed between processes. - Make inter-process data simple objects to make it easier to test with alternatives to pickle. - Make sources have the basic requirement to be able to find a content item from an item spec (path). - Make Hoedown the default Markdown formatter.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:17 -0800
parents 45ad976712ec
children f8572df0756e
line wrap: on
line diff
--- a/piecrust/sources/autoconfig.py	Fri Nov 03 23:14:56 2017 -0700
+++ b/piecrust/sources/autoconfig.py	Sun Nov 19 14:29:17 2017 -0800
@@ -92,7 +92,7 @@
 
         return {self.setting_name: values}
 
-    def findContent(self, route_params):
+    def findContentFromRoute(self, route_params):
         # Pages from this source are effectively flattened, so we need to
         # find pages using a brute-force kinda way.
         route_slug = route_params.get('slug', '')
@@ -131,7 +131,7 @@
         self.setting_name = config.get('setting_name', 'order')
         self.default_value = config.get('default_value', 0)
 
-    def findContent(self, route_params):
+    def findContentFromRoute(self, route_params):
         uri_path = route_params.get('slug', '')
         if uri_path == '':
             uri_path = '_index'