ignore missing concept type error
This commit is contained in:
parent
1f681de414
commit
d8c7ae86af
1 changed files with 7 additions and 3 deletions
|
@ -67,9 +67,13 @@ class StatefulConceptIndexInfo(IndexInfo):
|
||||||
@property
|
@property
|
||||||
def availableStatesDefinitions(self):
|
def availableStatesDefinitions(self):
|
||||||
globalOptions = IOptions(self.context.getLoopsRoot())
|
globalOptions = IOptions(self.context.getLoopsRoot())
|
||||||
typeOptions = IOptions(adapted(self.context.conceptType))
|
type = self.context.conceptType
|
||||||
return (globalOptions('organize.stateful.concept', []) +
|
if type is None: # may happen during object creation
|
||||||
typeOptions('organize.stateful', []))
|
return globalOptions('organize.stateful.concept', [])
|
||||||
|
else:
|
||||||
|
typeOptions = IOptions(adapted(type))
|
||||||
|
return (globalOptions('organize.stateful.concept', []) +
|
||||||
|
typeOptions('organize.stateful', []))
|
||||||
|
|
||||||
|
|
||||||
class StatefulResourceIndexInfo(IndexInfo):
|
class StatefulResourceIndexInfo(IndexInfo):
|
||||||
|
|
Loading…
Add table
Reference in a new issue