Mercurial > piecrust2
diff 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 |
line wrap: on
line diff
--- a/piecrust/pipelines/_pagerecords.py Wed Oct 04 09:15:16 2017 -0700 +++ b/piecrust/pipelines/_pagerecords.py Wed Oct 04 20:40:43 2017 -0700 @@ -45,6 +45,7 @@ FLAG_SOURCE_MODIFIED = 2**1 FLAG_OVERRIDEN = 2**2 FLAG_COLLAPSED_FROM_LAST_RUN = 2**3 + FLAG_IS_DRAFT = 2**4 def __init__(self): super().__init__() @@ -122,7 +123,8 @@ PagePipelineRecordEntry.FLAG_NEW: 'new', PagePipelineRecordEntry.FLAG_SOURCE_MODIFIED: 'touched', PagePipelineRecordEntry.FLAG_OVERRIDEN: 'overriden', - PagePipelineRecordEntry.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run'} + PagePipelineRecordEntry.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run', + PagePipelineRecordEntry.FLAG_IS_DRAFT: 'draft'} sub_flag_descriptions = {