# HG changeset patch # User Ludovic Chabant # Date 1518758113 28800 # Node ID a6618fdab37e41ff77ded7b74d75e176cd596481 # Parent c53af44457b678f9e4daf4ba54a954cd0977e63f sources: Fix some invalid relationship name. diff -r c53af44457b6 -r a6618fdab37e piecrust/sources/base.py --- 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 diff -r c53af44457b6 -r a6618fdab37e piecrust/sources/fs.py --- 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: