comparison piecrust/page.py @ 824:e01473c3ea7e

Allow page source to post-process page config at the end of page loading
author Ben Artin <ben@artins.org>
date Tue, 27 Dec 2016 04:09:38 -0500
parents 58ebf50235a5
children 4850f8c21b6e 601f4a236ee5
comparison
equal deleted inserted replaced
812:82509bce94ca 824:e01473c3ea7e
137 self._config = config 137 self._config = config
138 self._segments = content 138 self._segments = content
139 if was_cache_valid: 139 if was_cache_valid:
140 self._flags |= FLAG_RAW_CACHE_VALID 140 self._flags |= FLAG_RAW_CACHE_VALID
141 141
142 self.source.finalizeConfig(self)
142 143
143 def _parse_config_date(page_date): 144 def _parse_config_date(page_date):
144 if page_date is None: 145 if page_date is None:
145 return None 146 return None
146 147