show icon for tabular view

This commit is contained in:
Helmut Merz 2012-08-19 18:18:56 +02:00
parent 460fad9212
commit 61562b6af6

View file

@ -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']