make the target view name configurable
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3773 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d4725e6a84
commit
b273df3ea3
1 changed files with 4 additions and 1 deletions
|
@ -52,6 +52,8 @@ class NodeLayoutInstance(LayoutInstance):
|
|||
|
||||
adapts(ILayoutNode)
|
||||
|
||||
targetViewName = 'layout'
|
||||
|
||||
@Lazy
|
||||
def viewAnnotations(self):
|
||||
return self.view.request.annotations.get('loops.view', {})
|
||||
|
@ -63,7 +65,8 @@ class NodeLayoutInstance(LayoutInstance):
|
|||
@Lazy
|
||||
def targetView(self):
|
||||
request = self.view.request
|
||||
view = component.getMultiAdapter((self.target, request), name='layout')
|
||||
view = component.getMultiAdapter((self.target, request),
|
||||
name=self.targetViewName)
|
||||
#view.node = self.context
|
||||
view.layoutInstance = self
|
||||
return view
|
||||
|
|
Loading…
Add table
Reference in a new issue