add 'name' attribute to BaseView
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2896 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
b19b24a197
commit
d8ca5d33dc
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ class BaseView(GenericView, I18NView):
|
|||
except ForbiddenAttribute: # ignore when testing
|
||||
pass
|
||||
|
||||
@Lazy
|
||||
def name(self):
|
||||
return getName(self.context)
|
||||
|
||||
@Lazy
|
||||
def versions(self):
|
||||
return version.versions
|
||||
|
|
Loading…
Add table
Reference in a new issue