From 5c8b53f4021168c846fdc2d414696c809f1e7a83 Mon Sep 17 00:00:00 2001 From: helmutm Date: Tue, 16 Dec 2008 07:16:59 +0000 Subject: [PATCH] fix bug after extraction of getView() method git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3066 fd906abe-77d9-0310-91a1-e0d9ade77398 --- composer/message/instance.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/composer/message/instance.py b/composer/message/instance.py index e4695a2..d37904a 100644 --- a/composer/message/instance.py +++ b/composer/message/instance.py @@ -89,9 +89,6 @@ class DataProvider(object): if client is None: return '$' + key view = self.getView(key[2:]) - #request = self.data.get('request') or TestRequest() - #view = component.queryMultiAdapter( - # (client.manager, request), name=key[2:]) if view is not None: return view() else: @@ -127,7 +124,7 @@ class DataProvider(object): def getView(self, name): request = self.data.get('request') or TestRequest() return component.queryMultiAdapter( - (self.context.client.manager, request), name=viewName) + (self.context.client.manager, request), name=name) class MessageTemplate(Template):