comparison piecrust/admin/views/dashboard.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 b1a00c2c0c7f
children 0d699f04968c
comparison
equal deleted inserted replaced
988:f83ae0a5d793 989:8adc27285d93
86 source = s 86 source = s
87 break 87 break
88 if source is None: 88 if source is None:
89 return None 89 return None
90 90
91 # TODO: this assumes FS sources, but this comes from the disk anyway.
91 full_path = os.path.join(pcapp.root_dir, path) 92 full_path = os.path.join(pcapp.root_dir, path)
92 content_item = source.findContentFromPath(full_path) 93 content_item = source.findContentFromSpec(full_path)
93 if content_item is None: 94 if content_item is None:
94 return None 95 return None
95 96
96 page = pcapp.getPage(source, content_item) 97 page = pcapp.getPage(source, content_item)
97 uri = page.getUri() 98 uri = page.getUri()