[Zope3-checkins] CVS: Zope3/src/zope/app/services - utility.py:1.14.2.2 view.py:1.32.2.1

Sidnei da Silva sidnei at x3ng.com.br
Wed Aug 13 10:37:10 EDT 2003


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

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	utility.py view.py 
Log Message:
__name__-geddon. Use getName for getting the name of interfaces

=== Zope3/src/zope/app/services/utility.py 1.14.2.1 => 1.14.2.2 ===
--- Zope3/src/zope/app/services/utility.py:1.14.2.1	Tue Aug 12 09:19:23 2003
+++ Zope3/src/zope/app/services/utility.py	Wed Aug 13 09:36:36 2003
@@ -150,7 +150,7 @@
 
     def usageSummary(self):
         # Override IRegistration.usageSummary()
-        s = "%s utility" % self.interface.__name__
+        s = "%s utility" % self.interface.getName()
         if self.name:
             s += " named %s" % self.name
         return s


=== Zope3/src/zope/app/services/view.py 1.32 => 1.32.2.1 ===
--- Zope3/src/zope/app/services/view.py:1.32	Fri Aug  8 16:47:47 2003
+++ Zope3/src/zope/app/services/view.py	Wed Aug 13 09:36:36 2003
@@ -249,14 +249,14 @@
         if self.forInterface is None:
             ifname = _("(Anything)")
         else:
-            ifname = self.forInterface.__name__
+            ifname = self.forInterface.getName()
         summary = _("${view_name} ${ptype} View for {iface_name}")
         if self.layer and self.layer != "default":
             summary = _(
                 "${view_name} ${ptype} View for {iface_name} in layer ${layer}"
                 )
         summary.mapping = {'view_name':  self.viewName,
-                           'ptype':      self.ptype.__name__,
+                           'ptype':      self.ptype.getName(),
                            'iface_name': ifname,
                            'layer':      self.layer}
         return summary
@@ -294,9 +294,9 @@
         if self.forInterface is None:
             ifname = _("(Anything)")
         else:
-            ifname = self.forInterface.__name__
+            ifname = self.forInterface.getName()
 
-        pname = self.presentationType.__name__
+        pname = self.presentationType.getName()
         summary = _("${view_name} for ${pname} {what} {iface_name}")
         if self.layer and self.layer != "default":
             summary = _(




More information about the Zope3-Checkins mailing list