Mercurial > piecrust2
changeset 1078:a6618fdab37e
sources: Fix some invalid relationship name.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Feb 2018 21:15:13 -0800 |
parents | c53af44457b6 |
children | 00a0a65d08e6 |
files | piecrust/sources/base.py piecrust/sources/fs.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/sources/base.py Thu Feb 15 18:37:06 2018 -0800 +++ b/piecrust/sources/base.py Thu Feb 15 21:15:13 2018 -0800 @@ -15,7 +15,7 @@ # Types of relationships a content source can be asked for. REL_PARENT_GROUP = 1 REL_LOGICAL_PARENT_ITEM = 2 -REL_LOGICAl_CHILD_GROUP = 3 +REL_LOGICAL_CHILD_GROUP = 3 REL_ASSETS = 10
--- a/piecrust/sources/fs.py Thu Feb 15 18:37:06 2018 -0800 +++ b/piecrust/sources/fs.py Thu Feb 15 21:15:13 2018 -0800 @@ -7,7 +7,7 @@ from piecrust.routing import RouteParameter from piecrust.sources.base import ( ContentItem, ContentGroup, ContentSource, - REL_PARENT_GROUP, REL_LOGICAL_PARENT_ITEM, REL_LOGICAl_CHILD_GROUP) + REL_PARENT_GROUP, REL_LOGICAL_PARENT_ITEM, REL_LOGICAL_CHILD_GROUP) logger = logging.getLogger(__name__) @@ -159,7 +159,7 @@ return ContentItem(n, metadata) return None - if relationship == REL_LOGICAl_CHILD_GROUP: + if relationship == REL_LOGICAL_CHILD_GROUP: # If we want the children items of an item, we look for # a directory that has the same name as the item's file. if item.is_group: