Mercurial > piecrust2
comparison piecrust/pipelines/_pagerecords.py @ 1020:298b07a899b5
bake: Fix overriding issues between theme and user pages for index pages.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 05 Dec 2017 22:26:25 -0800 |
parents | 1857dbd4580f |
children | 5f97b5b59dfe |
comparison
equal
deleted
inserted
replaced
1019:bd544b65cfad | 1020:298b07a899b5 |
---|---|
8 FLAG_FORCED_BY_SOURCE = 2**1 | 8 FLAG_FORCED_BY_SOURCE = 2**1 |
9 FLAG_FORCED_BY_NO_PREVIOUS = 2**2 | 9 FLAG_FORCED_BY_NO_PREVIOUS = 2**2 |
10 FLAG_FORCED_BY_PREVIOUS_ERRORS = 2**3 | 10 FLAG_FORCED_BY_PREVIOUS_ERRORS = 2**3 |
11 FLAG_FORCED_BY_GENERAL_FORCE = 2**4 | 11 FLAG_FORCED_BY_GENERAL_FORCE = 2**4 |
12 FLAG_RENDER_CACHE_INVALIDATED = 2**5 | 12 FLAG_RENDER_CACHE_INVALIDATED = 2**5 |
13 FLAG_COLLAPSED_FROM_LAST_RUN = 2**6 | |
13 | 14 |
14 | 15 |
15 def create_subpage_job_result(out_uri, out_path): | 16 def create_subpage_job_result(out_uri, out_path): |
16 return { | 17 return { |
17 'out_uri': out_uri, | 18 'out_uri': out_uri, |
144 SubPageFlags.FLAG_BAKED: 'baked', | 145 SubPageFlags.FLAG_BAKED: 'baked', |
145 SubPageFlags.FLAG_FORCED_BY_SOURCE: 'forced by source', | 146 SubPageFlags.FLAG_FORCED_BY_SOURCE: 'forced by source', |
146 SubPageFlags.FLAG_FORCED_BY_NO_PREVIOUS: 'forced b/c new', | 147 SubPageFlags.FLAG_FORCED_BY_NO_PREVIOUS: 'forced b/c new', |
147 SubPageFlags.FLAG_FORCED_BY_PREVIOUS_ERRORS: 'forced by errors', | 148 SubPageFlags.FLAG_FORCED_BY_PREVIOUS_ERRORS: 'forced by errors', |
148 SubPageFlags.FLAG_FORCED_BY_GENERAL_FORCE: 'manually forced', | 149 SubPageFlags.FLAG_FORCED_BY_GENERAL_FORCE: 'manually forced', |
149 SubPageFlags.FLAG_RENDER_CACHE_INVALIDATED: 'cache invalidated' | 150 SubPageFlags.FLAG_RENDER_CACHE_INVALIDATED: 'cache invalidated', |
151 SubPageFlags.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run' | |
150 } | 152 } |
151 | 153 |
152 | 154 |
153 def _describe_render_info(ri): | 155 def _describe_render_info(ri): |
154 if ri is None: | 156 if ri is None: |