[Zope3-checkins] CVS: Zope3/src/zope/app/services - utility.py:1.18

Anthony Baxter anthony at interlink.com.au
Sun Feb 8 20:10:17 EST 2004


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

Modified Files:
	utility.py 
Log Message:
more information in the utility registration view


=== Zope3/src/zope/app/services/utility.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/services/utility.py:1.17	Sun Sep 21 13:31:12 2003
+++ Zope3/src/zope/app/services/utility.py	Sun Feb  8 20:10:16 2004
@@ -154,9 +154,12 @@
 
     def usageSummary(self):
         # Override IRegistration.usageSummary()
-        s = "%s utility" % self.interface.getName()
+        component = self.getComponent()
+        s = self.getInterface().getName()
         if self.name:
-            s += " named %s" % self.name
+            s += " registered as '%s'" % self.name
+        s += ", implemented by %s"%component.__class__.__name__
+        s += " '%s'"%self.componentPath
         return s
 
     def getInterface(self):




More information about the Zope3-Checkins mailing list