define default headTitle in BaseView

This commit is contained in:
Helmut Merz 2016-03-28 11:37:18 +02:00
parent acef9b683e
commit 689bd983bc

View file

@ -1,5 +1,5 @@
# #
# Copyright (c) 2013 Helmut Merz helmutm@cy55.de # Copyright (c) 2016 Helmut Merz helmutm@cy55.de
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -86,6 +86,10 @@ class BaseView(object):
def title(self): def title(self):
return self.context.title return self.context.title
@Lazy
def headTitle(self):
return self.title
@Lazy @Lazy
def description(self): def description(self):
return self.context.description return self.context.description