Mercurial > piecrust2
comparison piecrust/sources/posts.py @ 866:d9059257743c
refactor: Make the linker work again.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 12 Jun 2017 22:10:50 -0700 |
parents | fddaf43424e2 |
children | c445a3d5d950 |
comparison
equal
deleted
inserted
replaced
865:1bb0d973dc69 | 866:d9059257743c |
---|---|
35 @property | 35 @property |
36 def path_format(self): | 36 def path_format(self): |
37 return self.__class__.PATH_FORMAT | 37 return self.__class__.PATH_FORMAT |
38 | 38 |
39 def _finalizeContent(self, groups): | 39 def _finalizeContent(self, groups): |
40 SimpleAssetsSubDirMixin._removeAssetGroups(groups) | 40 SimpleAssetsSubDirMixin._removeAssetGroups(self, groups) |
41 | 41 |
42 def getParentGroup(self, item): | 42 def getParentGroup(self, item): |
43 return None | 43 return None |
44 | 44 |
45 def getRelatedContents(self, item, relationship): | 45 def getRelatedContents(self, item, relationship): |
46 if relationship == REL_ASSETS: | 46 if relationship == REL_ASSETS: |
47 return SimpleAssetsSubDirMixin._getRelatedAssetsContents( | 47 return SimpleAssetsSubDirMixin._getRelatedAssetsContents( |
48 self, item) | 48 self, item) |
49 return FSContentSource.getRelatedContents(self, item, relationship) | 49 return FSContentSource.getRelatedContents(self, item, relationship) |
50 | |
51 def findGroup(self, spec): | |
52 return None | |
50 | 53 |
51 def findContent(self, route_params): | 54 def findContent(self, route_params): |
52 year = route_params.get('year') | 55 year = route_params.get('year') |
53 month = route_params.get('month') | 56 month = route_params.get('month') |
54 day = route_params.get('day') | 57 day = route_params.get('day') |