[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - hooks.py:1.1.2.8

Jim Fulton jim@zope.com
Tue, 20 Nov 2001 17:23:13 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv28258

Modified Files:
      Tag: Zope-3x-branch
	hooks.py 
Log Message:
Fixed error handling for getPresentation.


=== Zope3/lib/python/Zope/ComponentArchitecture/hooks.py 1.1.2.7 => 1.1.2.8 ===
 def getPresentation(object, name, type, default=_marker):
     r = getPresentation_hook(object, name, type, default)
-    if r is _marker: raise ComponentLookupError(object, interface)
+    if r is _marker: raise ComponentLookupError(object, name, type)
     return r
 
 def provideFactory(qname, factory):