fix check for showing tabview icon

This commit is contained in:
Helmut Merz 2013-04-26 09:23:25 +02:00
parent 4a6d5abefc
commit 5ef0c35ca0

View file

@ -42,7 +42,6 @@ template = ViewPageTemplateFile('view_macros.pt')
class SurveyView(ConceptView):
tabview = 'index.html'
data = None
errors = None
@ -51,6 +50,11 @@ class SurveyView(ConceptView):
self.registerDojo()
return template.macros['survey']
@Lazy
def tabview(self):
if self.editable:
return 'index.html'
def results(self):
result = []
response = None