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

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


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

Modified Files:
	view.py 
Log Message:
Consistent with the Views service, use "(Anything)" rather than
"(none)" to indicate that forInterface is None.


=== Zope3/src/zope/app/services/view.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/services/view.py:1.15	Wed Apr 30 13:09:16 2003
+++ Zope3/src/zope/app/services/view.py	Wed Apr 30 13:51:34 2003
@@ -240,8 +240,8 @@
     getView = ContextMethod(getView)
 
     def usageSummary(self):
-        s = "%s %s for %s" % (self.viewName, self._what,
-                              getattr(self.forInterface, '__name__', "(none)"))
+        ifname = getattr(self.forInterface, '__name__', "(Anything)")
+        s = "%s %s for %s" % (self.viewName, self._what, ifname)
         if self.layer and self.layer != "default":
             s = "%s in layer %s" % (s, self.layer)
         return s