use target view (set via node traverser) only if requested as default (index.html) view
This commit is contained in:
parent
2a7a5f8a1d
commit
46c0e997d4
1 changed files with 4 additions and 3 deletions
|
@ -429,6 +429,7 @@ class NodeView(BaseView):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def targetView(self, name='index.html', methodName='show'):
|
def targetView(self, name='index.html', methodName='show'):
|
||||||
|
if name == 'index.html': # only when called for default view
|
||||||
tv = self.viewAnnotations.get('targetView')
|
tv = self.viewAnnotations.get('targetView')
|
||||||
if tv is not None:
|
if tv is not None:
|
||||||
return tv()
|
return tv()
|
||||||
|
|
Loading…
Add table
Reference in a new issue