resources in books: show links to other sections in which this resource is used

This commit is contained in:
Helmut Merz 2012-08-06 14:25:07 +02:00
parent 8fafa41809
commit c029e98878

View file

@ -78,7 +78,7 @@ class SectionView(Base, ConceptView):
def getParentsForResource(self, r): def getParentsForResource(self, r):
for c in r.context.getConcepts([self.defaultPredicate]): for c in r.context.getConcepts([self.defaultPredicate]):
if c.conceptType not in (self.documentTypeType, self.sectionType): if c != self.context and c.conceptType != self.documentTypeType:
yield c yield c