[Zope3-checkins] CVS: Zope3/src/zope/app/services - configuration.py:1.11

Guido van Rossum guido@python.org
Wed, 12 Mar 2003 13:48:32 -0500


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

Modified Files:
	configuration.py 
Log Message:
Somehow, in a NamedConfiguration, self.name can be None.  Why?
Anyway, usageSummary shouldn't crash in this case.


=== Zope3/src/zope/app/services/configuration.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/services/configuration.py:1.10	Mon Mar 10 17:37:47 2003
+++ Zope3/src/zope/app/services/configuration.py	Wed Mar 12 13:48:31 2003
@@ -310,7 +310,7 @@
         super(NamedConfiguration, self).__init__()
 
     def usageSummary(self):
-        return self.name + " " + self.__class__.__name__
+        return "%s %s" % (self.name, self.__class__.__name__)
 
 
 class NamedComponentConfiguration(NamedConfiguration):