comparison piecrust/data/paginationdata.py @ 979:45ad976712ec

tests: Big push to get the tests to pass again. - Lots of fixes everywhere in the code. - Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now. - Replace all `.md` test files with `.html` since now a auto-format extension always sets the format. - Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 29 Oct 2017 22:51:57 -0700
parents cc55740860de
children 7e4742a60d14
comparison
equal deleted inserted replaced
978:7e51d14097cb 979:45ad976712ec
49 return page.datetime.strftime(date_format) 49 return page.datetime.strftime(date_format)
50 return None 50 return None
51 51
52 52
53 def _load_datetime(data, name): 53 def _load_datetime(data, name):
54 dt = data_page.datetime 54 dt = data._page.datetime
55 return { 55 return {
56 'year': dt.year, 'month': dt.month, 'day': dt.day, 56 'year': dt.year, 'month': dt.month, 'day': dt.day,
57 'hour': dt.hour, 'minute': dt.minute, 'second': dt.second} 57 'hour': dt.hour, 'minute': dt.minute, 'second': dt.second}
58 58
59 59