[Zope3-checkins] CVS: Zope3/src/zope/component - view.py:1.4

Marius Gedminas mgedmin@codeworks.lt
Mon, 23 Jun 2003 12:39:15 -0400


Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv8354/src/zope/component

Modified Files:
	view.py 
Log Message:
When view lookup fails show the presentation type correctly


=== Zope3/src/zope/component/view.py 1.3 => 1.4 ===
--- Zope3/src/zope/component/view.py:1.3	Wed Jun  4 05:09:45 2003
+++ Zope3/src/zope/component/view.py	Mon Jun 23 12:39:15 2003
@@ -55,6 +55,7 @@
         '''See interface IViewService'''
         view = self.queryView(object, name, request)
         if view is None:
+            type = request.getPresentationType()
             raise ComponentLookupError(object, name, type)
         return view