From c029e988785655ecb61ed66bafc72579b11b3788 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 6 Aug 2012 14:25:07 +0200 Subject: [PATCH] resources in books: show links to other sections in which this resource is used --- compound/book/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compound/book/browser.py b/compound/book/browser.py index ac3e905..f454941 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -78,7 +78,7 @@ class SectionView(Base, ConceptView): def getParentsForResource(self, r): 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