[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - view.py:1.9

Guido van Rossum guido@python.org
Wed, 30 Apr 2003 13:23:40 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv5670

Modified Files:
	view.py 
Log Message:
configInfo(): forInterface may be None!


=== Zope3/src/zope/app/browser/services/view.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/services/view.py:1.8	Fri Apr 11 15:05:08 2003
+++ Zope3/src/zope/app/browser/services/view.py	Wed Apr 30 13:23:39 2003
@@ -79,8 +79,12 @@
 
             forInterface, presentationType, registry, layer, viewName = info
 
-            forInterface = (
-                forInterface.__module__ +"."+ forInterface.__name__)
+            if forInterface is None:
+                forInterface = "(Anything)"
+            else:
+                forInterface = (
+                    forInterface.__module__ +"."+ forInterface.__name__)
+
             presentationType = (
                 presentationType.__module__ +"."+ presentationType.__name__)