Mercurial > piecrust2
comparison piecrust/sources/taxonomy.py @ 871:504ddb370df8
refactor: Fixing some issues with baking assets.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Jun 2017 22:30:27 -0700 |
parents | 9bb22bbe093c |
children | d1095774bfcf |
comparison
equal
deleted
inserted
replaced
870:48d25fd68b8d | 871:504ddb370df8 |
---|---|
292 | 292 |
293 page = Page(self.source, job.content_item) | 293 page = Page(self.source, job.content_item) |
294 prev_entry = ctx.previous_entry | 294 prev_entry = ctx.previous_entry |
295 cur_entry = result.record_entry | 295 cur_entry = result.record_entry |
296 cur_entry.term = content_item.metadata['term'] | 296 cur_entry.term = content_item.metadata['term'] |
297 self._pagebaker.bake(page, prev_entry, cur_entry, []) | 297 self._pagebaker.bake(page, prev_entry, cur_entry) |
298 | 298 |
299 def postJobRun(self, ctx): | 299 def postJobRun(self, ctx): |
300 # We create bake entries for all the terms that were *not* dirty. | 300 # We create bake entries for all the terms that were *not* dirty. |
301 # This is because otherwise, on the next incremental bake, we wouldn't | 301 # This is because otherwise, on the next incremental bake, we wouldn't |
302 # find any entry for those things, and figure that we need to delete | 302 # find any entry for those things, and figure that we need to delete |