use IPredicate as type interface for predicate type in standard setup

This commit is contained in:
Helmut Merz 2011-09-28 10:30:08 +02:00
parent 89f4ac4b49
commit 29ad535ce5
2 changed files with 3 additions and 2 deletions

View file

@ -347,7 +347,8 @@ class ConceptView(BaseView):
def isHidden(self, pr):
if (getName(pr.second.conceptType) in
IOptions(adapted(pr.predicate))('hide_parents_for', [])):
#IOptions(adapted(pr.predicate))('hide_parents_for', [])):
IOptions(pr.predicate)('hide_parents_for', [])):
return True
hideRoles = IOptions(adapted(pr.first.conceptType))('hide_for', None)
if hideRoles is not None:

View file

@ -707,7 +707,7 @@ class ITypeConcept(IConceptSchema, ILoopsAdapter):
# predicates
class IPredicate(IConceptSchema):
class IPredicate(IConceptSchema, ILoopsAdapter):
""" Provided by predicates (predicate concepts that specify relation types),
i.e. concepts of type 'predicate' should be adaptable to this interface.
"""