[Zope3-checkins] CVS: Zope3/src/zope/app/services - view.py:1.15
Guido van Rossum
guido@python.org
Wed, 30 Apr 2003 13:09:17 -0400
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv3518
Modified Files:
view.py
Log Message:
usageSummary() shouldn't fail when the interface is None.
=== Zope3/src/zope/app/services/view.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/services/view.py:1.14 Tue Mar 25 06:23:09 2003
+++ Zope3/src/zope/app/services/view.py Wed Apr 30 13:09:16 2003
@@ -241,7 +241,7 @@
def usageSummary(self):
s = "%s %s for %s" % (self.viewName, self._what,
- self.forInterface.__name__)
+ getattr(self.forInterface, '__name__', "(none)"))
if self.layer and self.layer != "default":
s = "%s in layer %s" % (s, self.layer)
return s