Mercurial > piecrust2
diff 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 |
line wrap: on
line diff
--- a/piecrust/admin/views/dashboard.py Fri Nov 03 23:14:56 2017 -0700 +++ b/piecrust/admin/views/dashboard.py Sun Nov 19 14:29:17 2017 -0800 @@ -88,8 +88,9 @@ if source is None: return None + # TODO: this assumes FS sources, but this comes from the disk anyway. full_path = os.path.join(pcapp.root_dir, path) - content_item = source.findContentFromPath(full_path) + content_item = source.findContentFromSpec(full_path) if content_item is None: return None