[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/interface - __init__.py:1.4.14.1

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


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

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

=== Zope3/src/zope/app/browser/services/interface/__init__.py 1.4 => 1.4.14.1 ===
--- Zope3/src/zope/app/browser/services/interface/__init__.py:1.4	Tue Jun 24 12:42:35 2003
+++ Zope3/src/zope/app/browser/services/interface/__init__.py	Wed Aug 13 09:36:08 2003
@@ -23,7 +23,7 @@
 class Interfaces:
 
     def getInterfaces(self):
-        L = [(iface.__name__, id) for id, iface in self.context.items()]
+        L = [(iface.getName(), id) for id, iface in self.context.items()]
         L.sort()
         return [{"id": id, "name": name} for name, id in L]
 
@@ -36,7 +36,7 @@
         from zope.proxy import getProxiedObject
         self.iface = getProxiedObject(iface)
         
-        self.name = self.iface.__name__
+        self.name = self.iface.getName()
         # XXX the doc string needs some formatting for presentation
         # XXX self.doc = self.iface.__doc__
         self.doc = self.iface.getDoc()




More information about the Zope3-Checkins mailing list