From 61562b6af64f8997bc68d1ee22b50476b5970b36 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 19 Aug 2012 18:18:56 +0200 Subject: [PATCH] show icon for tabular view --- compound/book/browser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compound/book/browser.py b/compound/book/browser.py index 87a14d1..d6e2232 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -50,6 +50,11 @@ class Base(object): for p in self.context.getParents([self.isPartOfPredicate]): return self.nodeView.getViewForTarget(p) + @Lazy + def tabview(self): + if self.editable: + return 'index.html' + class BookOverview(Base, ConceptView): @@ -64,11 +69,6 @@ class SectionView(Base, ConceptView): def macro(self): return book_template.macros['section'] - @Lazy - def tabview(self): - if self.editable: - return 'index.html' - @Lazy def documentTypeType(self): return self.conceptManager['documenttype']