use target view (set via node traverser) only if requested as default (index.html) view

This commit is contained in:
Helmut Merz 2012-01-29 11:25:26 +01:00
parent 2a7a5f8a1d
commit 46c0e997d4

View file

@ -429,6 +429,7 @@ class NodeView(BaseView):
return None
def targetView(self, name='index.html', methodName='show'):
if name == 'index.html': # only when called for default view
tv = self.viewAnnotations.get('targetView')
if tv is not None:
return tv()