use setting on type for getting container for object creation
This commit is contained in:
parent
1efa3cbbdb
commit
6b09ed2f9f
1 changed files with 4 additions and 0 deletions
4
type.py
4
type.py
|
@ -106,6 +106,10 @@ class LoopsType(BaseType):
|
|||
|
||||
@Lazy
|
||||
def defaultContainer(self):
|
||||
if self.typeProvider:
|
||||
cont = ITypeConcept(self.typeProvider).conceptManager
|
||||
if cont and cont in self.root:
|
||||
return self.root[cont]
|
||||
return self.root[self.containerMapping.get(self.qualifiers[0], 'concept')]
|
||||
|
||||
@Lazy
|
||||
|
|
Loading…
Add table
Reference in a new issue