Mercurial > piecrust2
comparison piecrust/baking/baker.py @ 721:234d0c7c02cf
bake: Add the timestamp of the page to each record entry.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 May 2016 20:15:30 -0700 |
parents | ab5c6a8ae90a |
children | 9a92e2804562 |
comparison
equal
deleted
inserted
replaced
720:3e188d88a9ac | 721:234d0c7c02cf |
---|---|
215 # This will also update the `dirty_source_names` for the record | 215 # This will also update the `dirty_source_names` for the record |
216 # as we add page files whose last modification times are later | 216 # as we add page files whose last modification times are later |
217 # than the last bake. | 217 # than the last bake. |
218 record_entry = BakeRecordEntry(res['source_name'], res['path']) | 218 record_entry = BakeRecordEntry(res['source_name'], res['path']) |
219 record_entry.config = res['config'] | 219 record_entry.config = res['config'] |
220 record_entry.timestamp = res['timestamp'] | |
220 if res['errors']: | 221 if res['errors']: |
221 record_entry.errors += res['errors'] | 222 record_entry.errors += res['errors'] |
222 record.current.success = False | 223 record.current.success = False |
223 self._logErrors(res['path'], res['errors']) | 224 self._logErrors(res['path'], res['errors']) |
224 record.addEntry(record_entry) | 225 record.addEntry(record_entry) |