diff piecrust/sources/fs.py @ 1078:a6618fdab37e

sources: Fix some invalid relationship name.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 15 Feb 2018 21:15:13 -0800
parents 3678cddf99f9
children 4ea64255eadf
line wrap: on
line diff
--- 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: