Mercurial > piecrust2
comparison piecrust/sources/posts.py @ 862:fddaf43424e2
refactor: Get the page assets to work again in the server.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 08 Jun 2017 23:09:34 -0700 |
parents | 08e02c2a2a1a |
children | d9059257743c |
comparison
equal
deleted
inserted
replaced
861:d214918d4d2c | 862:fddaf43424e2 |
---|---|
34 | 34 |
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, parent_group, items, groups): | 39 def _finalizeContent(self, groups): |
40 SimpleAssetsSubDirMixin._onFinalizeContent( | 40 SimpleAssetsSubDirMixin._removeAssetGroups(groups) |
41 parent_group, items, groups) | 41 |
42 def getParentGroup(self, item): | |
43 return None | |
42 | 44 |
43 def getRelatedContents(self, item, relationship): | 45 def getRelatedContents(self, item, relationship): |
44 if relationship == REL_ASSETS: | 46 if relationship == REL_ASSETS: |
45 SimpleAssetsSubDirMixin._getRelatedAssetsContents(item) | 47 return SimpleAssetsSubDirMixin._getRelatedAssetsContents( |
46 raise NotImplementedError() | 48 self, item) |
49 return FSContentSource.getRelatedContents(self, item, relationship) | |
47 | 50 |
48 def findContent(self, route_params): | 51 def findContent(self, route_params): |
49 year = route_params.get('year') | 52 year = route_params.get('year') |
50 month = route_params.get('month') | 53 month = route_params.get('month') |
51 day = route_params.get('day') | 54 day = route_params.get('day') |