Merge branch 'master' into bbmaster
This commit is contained in:
commit
dbf653b900
1 changed files with 5 additions and 3 deletions
|
@ -51,6 +51,7 @@ from loops.interfaces import IConcept, IConceptRelation, IConceptView
|
||||||
from loops.interfaces import IConceptManager, IConceptManagerContained
|
from loops.interfaces import IConceptManager, IConceptManagerContained
|
||||||
from loops.interfaces import ILoopsContained
|
from loops.interfaces import ILoopsContained
|
||||||
from loops.interfaces import IIndexAttributes
|
from loops.interfaces import IIndexAttributes
|
||||||
|
from loops.interfaces import IIsSubtype
|
||||||
from loops.interfaces import IAssignmentEvent, IDeassignmentEvent
|
from loops.interfaces import IAssignmentEvent, IDeassignmentEvent
|
||||||
from loops.security.common import canListObject
|
from loops.security.common import canListObject
|
||||||
from loops import util
|
from loops import util
|
||||||
|
@ -220,9 +221,10 @@ class Concept(Contained, Persistent):
|
||||||
if subtypeRels:
|
if subtypeRels:
|
||||||
from loops.predicate import adaptedRelation
|
from loops.predicate import adaptedRelation
|
||||||
rel = adaptedRelation(subtypeRels[0])
|
rel = adaptedRelation(subtypeRels[0])
|
||||||
predName = rel.usePredicate
|
if IIsSubtype.providedBy(rel):
|
||||||
if predName and predName != u'standard':
|
predName = rel.usePredicate
|
||||||
predicate = cm[predName]
|
if predName and predName != u'standard':
|
||||||
|
predicate = cm[predName]
|
||||||
return predicate
|
return predicate
|
||||||
|
|
||||||
def assignChild(self, concept, predicate=None, order=0, relevance=1.0):
|
def assignChild(self, concept, predicate=None, order=0, relevance=1.0):
|
||||||
|
|
Loading…
Add table
Reference in a new issue