Mercurial > piecrust2
comparison piecrust/baking/records.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 |
---|---|
14 key += '+%s' % extra_key | 14 key += '+%s' % extra_key |
15 return hashlib.md5(key.encode('utf8')).hexdigest() | 15 return hashlib.md5(key.encode('utf8')).hexdigest() |
16 | 16 |
17 | 17 |
18 class BakeRecord(Record): | 18 class BakeRecord(Record): |
19 RECORD_VERSION = 18 | 19 RECORD_VERSION = 19 |
20 | 20 |
21 def __init__(self): | 21 def __init__(self): |
22 super(BakeRecord, self).__init__() | 22 super(BakeRecord, self).__init__() |
23 self.out_dir = None | 23 self.out_dir = None |
24 self.bake_time = None | 24 self.bake_time = None |
76 self.source_name = source_name | 76 self.source_name = source_name |
77 self.path = path | 77 self.path = path |
78 self.extra_key = extra_key | 78 self.extra_key = extra_key |
79 self.flags = self.FLAG_NONE | 79 self.flags = self.FLAG_NONE |
80 self.config = None | 80 self.config = None |
81 self.timestamp = None | |
81 self.errors = [] | 82 self.errors = [] |
82 self.subs = [] | 83 self.subs = [] |
83 | 84 |
84 @property | 85 @property |
85 def path_mtime(self): | 86 def path_mtime(self): |