Mercurial > piecrust2
diff piecrust/data/linker.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 |
line wrap: on
line diff
--- a/piecrust/data/linker.py Thu Jun 08 08:52:45 2017 -0700 +++ b/piecrust/data/linker.py Thu Jun 08 23:09:34 2017 -0700 @@ -1,7 +1,7 @@ import logging from piecrust.data.paginationdata import PaginationData from piecrust.sources.base import ( - REL_PARENT_GROUP, REL_LOGICAL_PARENT_ITEM, REL_LOGICAl_CHILD_GROUP) + REL_LOGICAL_PARENT_ITEM, REL_LOGICAl_CHILD_GROUP) logger = logging.getLogger(__name__) @@ -67,8 +67,7 @@ def siblings(self): if self._siblings is None: self._siblings = [] - parent_group = self._source.getRelatedContents( - self._content_item, REL_PARENT_GROUP) + parent_group = self._source.getParentGroup(self._content_item) for i in self._source.getContents(parent_group): if not i.is_group: ipage = self._app.getPage(self._source, i)