comparison piecrust/pipelines/_pagebaker.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 8adc27285d93
children 3bcb2d446397
comparison
equal deleted inserted replaced
1019:bd544b65cfad 1020:298b07a899b5
105 # If this page didn't bake because it's already up-to-date. 105 # If this page didn't bake because it's already up-to-date.
106 # Keep trying for as many subs as we know this page has. 106 # Keep trying for as many subs as we know this page has.
107 if bake_status == STATUS_CLEAN: 107 if bake_status == STATUS_CLEAN:
108 cur_sub_entry['render_info'] = copy.deepcopy( 108 cur_sub_entry['render_info'] = copy.deepcopy(
109 prev_sub_entry['render_info']) 109 prev_sub_entry['render_info'])
110 cur_sub_entry['flags'] = SubPageFlags.FLAG_NONE 110 cur_sub_entry['flags'] = \
111 SubPageFlags.FLAG_COLLAPSED_FROM_LAST_RUN
111 112
112 if prev_entry.num_subs >= cur_sub + 1: 113 if prev_entry.num_subs >= cur_sub + 1:
113 cur_sub += 1 114 cur_sub += 1
114 has_more_subs = True 115 has_more_subs = True
115 logger.debug(" %s is up to date, skipping to next " 116 logger.debug(" %s is up to date, skipping to next "