comparison 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
comparison
equal deleted inserted replaced
861:d214918d4d2c 862:fddaf43424e2
11 REALM_USER: 'User', 11 REALM_USER: 'User',
12 REALM_THEME: 'Theme'} 12 REALM_THEME: 'Theme'}
13 13
14 14
15 # Types of relationships a content source can be asked for. 15 # Types of relationships a content source can be asked for.
16 REL_PARENT_GROUP = 1 16 REL_LOGICAL_PARENT_ITEM = 1
17 REL_LOGICAL_PARENT_ITEM = 2 17 REL_LOGICAl_CHILD_GROUP = 2
18 REL_LOGICAl_CHILD_GROUP = 3
19 REL_ASSETS = 10 18 REL_ASSETS = 10
20 19
21 20
22 logger = logging.getLogger(__name__) 21 logger = logging.getLogger(__name__)
23 22
117 116
118 def getContents(self, group): 117 def getContents(self, group):
119 raise NotImplementedError("'%s' doesn't implement 'getContents'." % 118 raise NotImplementedError("'%s' doesn't implement 'getContents'." %
120 self.__class__) 119 self.__class__)
121 120
121 def getParentGroup(self, item):
122 raise NotImplementedError()
123
122 def getRelatedContents(self, item, relationship): 124 def getRelatedContents(self, item, relationship):
123 raise NotImplementedError() 125 raise NotImplementedError()
124 126
125 def findContent(self, route_params): 127 def findContent(self, route_params):
126 raise NotImplementedError() 128 raise NotImplementedError()