Mercurial > piecrust2
comparison piecrust/pipelines/_pagerecords.py @ 939:abc52a6262a1
bake: Support the `draft` setting.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Oct 2017 20:40:43 -0700 |
parents | 7169bf42ec60 |
children | 45ad976712ec |
comparison
equal
deleted
inserted
replaced
935:7ecb946bfafd | 939:abc52a6262a1 |
---|---|
43 FLAG_NONE = 0 | 43 FLAG_NONE = 0 |
44 FLAG_NEW = 2**0 | 44 FLAG_NEW = 2**0 |
45 FLAG_SOURCE_MODIFIED = 2**1 | 45 FLAG_SOURCE_MODIFIED = 2**1 |
46 FLAG_OVERRIDEN = 2**2 | 46 FLAG_OVERRIDEN = 2**2 |
47 FLAG_COLLAPSED_FROM_LAST_RUN = 2**3 | 47 FLAG_COLLAPSED_FROM_LAST_RUN = 2**3 |
48 FLAG_IS_DRAFT = 2**4 | |
48 | 49 |
49 def __init__(self): | 50 def __init__(self): |
50 super().__init__() | 51 super().__init__() |
51 self.flags = self.FLAG_NONE | 52 self.flags = self.FLAG_NONE |
52 self.config = None | 53 self.config = None |
120 | 121 |
121 flag_descriptions = { | 122 flag_descriptions = { |
122 PagePipelineRecordEntry.FLAG_NEW: 'new', | 123 PagePipelineRecordEntry.FLAG_NEW: 'new', |
123 PagePipelineRecordEntry.FLAG_SOURCE_MODIFIED: 'touched', | 124 PagePipelineRecordEntry.FLAG_SOURCE_MODIFIED: 'touched', |
124 PagePipelineRecordEntry.FLAG_OVERRIDEN: 'overriden', | 125 PagePipelineRecordEntry.FLAG_OVERRIDEN: 'overriden', |
125 PagePipelineRecordEntry.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run'} | 126 PagePipelineRecordEntry.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run', |
127 PagePipelineRecordEntry.FLAG_IS_DRAFT: 'draft'} | |
126 | 128 |
127 | 129 |
128 sub_flag_descriptions = { | 130 sub_flag_descriptions = { |
129 SubPagePipelineRecordEntry.FLAG_BAKED: 'baked', | 131 SubPagePipelineRecordEntry.FLAG_BAKED: 'baked', |
130 SubPagePipelineRecordEntry.FLAG_FORCED_BY_SOURCE: 'forced by source', | 132 SubPagePipelineRecordEntry.FLAG_FORCED_BY_SOURCE: 'forced by source', |