make sure 'node' view annotation will not be overwritten
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3523 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
ada3e0a3ea
commit
2338b2d9e8
1 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ class NodeView(BaseView):
|
|||
super(NodeView, self).__init__(context, request)
|
||||
viewAnnotations = request.annotations.setdefault('loops.view', {})
|
||||
viewAnnotations['nodeView'] = self
|
||||
if viewAnnotations.get('node') is None:
|
||||
viewAnnotations['node'] = self.context
|
||||
viewConfig = getViewConfiguration(context, request)
|
||||
self.setSkin(viewConfig.get('skinName'))
|
||||
|
|
Loading…
Add table
Reference in a new issue