comparison piecrust/app.py @ 854:08e02c2a2a1a

core: Keep refactoring, this time to prepare for generator sources. - Make a few APIs simpler. - Content pipelines create their own jobs, so that generator sources can keep aborting in `getContents`, but rely on their pipeline to generate pages for baking.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 04 Jun 2017 23:34:28 -0700
parents f070a4fc033c
children d1095774bfcf
comparison
equal deleted inserted replaced
853:f070a4fc033c 854:08e02c2a2a1a
157 def routes(self): 157 def routes(self):
158 routes = [] 158 routes = []
159 for r in self.config.get('site/routes'): 159 for r in self.config.get('site/routes'):
160 rte = Route(self, r) 160 rte = Route(self, r)
161 routes.append(rte) 161 routes.append(rte)
162 routes = sorted(routes, key=lambda r: r.pass_num)
162 return routes 163 return routes
163 164
164 @cached_property 165 @cached_property
165 def publishers(self): 166 def publishers(self):
166 defs_by_name = {} 167 defs_by_name = {}