diff piecrust/sources/base.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 448710d84121
children d9059257743c
line wrap: on
line diff
--- a/piecrust/sources/base.py	Thu Jun 08 08:52:45 2017 -0700
+++ b/piecrust/sources/base.py	Thu Jun 08 23:09:34 2017 -0700
@@ -13,9 +13,8 @@
 
 
 # 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_PARENT_ITEM = 1
+REL_LOGICAl_CHILD_GROUP = 2
 REL_ASSETS = 10
 
 
@@ -119,6 +118,9 @@
         raise NotImplementedError("'%s' doesn't implement 'getContents'." %
                                   self.__class__)
 
+    def getParentGroup(self, item):
+        raise NotImplementedError()
+
     def getRelatedContents(self, item, relationship):
         raise NotImplementedError()