comparison piecrust/data/linker.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 84fc72a17f7a
children 8adc27285d93
comparison
equal deleted inserted replaced
978:7e51d14097cb 979:45ad976712ec
63 @property 63 @property
64 def siblings(self): 64 def siblings(self):
65 src = self._source 65 src = self._source
66 app = src.app 66 app = src.app
67 for i in self._getAllSiblings(): 67 for i in self._getAllSiblings():
68 if not i.is_group and i.spec != self._content_item.spec: 68 if not i.is_group:
69 ipage = app.getPage(src, i) 69 ipage = app.getPage(src, i)
70 yield PaginationData(ipage) 70 ipage_data = PaginationData(ipage)
71 ipage_data._setValue('is_self',
72 i.spec == self._content_item.spec)
73 yield ipage_data
71 74
72 @property 75 @property
73 def children(self): 76 def children(self):
74 src = self._source 77 src = self._source
75 app = src.app 78 app = src.app