[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - adapter.py:1.12.2.1 view.py:1.22.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/browser/services
In directory cvs.zope.org:/tmp/cvs-serv28777/src/zope/app/browser/services

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

=== Zope3/src/zope/app/browser/services/adapter.py 1.12 => 1.12.2.1 ===
--- Zope3/src/zope/app/browser/services/adapter.py:1.12	Thu Aug  7 13:41:03 2003
+++ Zope3/src/zope/app/browser/services/adapter.py	Wed Aug 13 09:36:04 2003
@@ -71,9 +71,9 @@
              ) in self.context.getRegisteredMatching(forInterface,
                                                      providedInterface):
             forInterface = (
-                forInterface.__module__ +"."+ forInterface.__name__)
+                forInterface.__module__ +"."+ forInterface.getName())
             providedInterface = (
-                providedInterface.__module__ +"."+ providedInterface.__name__)
+                providedInterface.__module__ +"."+ providedInterface.getName())
 
             registry = ContextWrapper(registry, self.context)
             view = getView(registry, "ChangeRegistrations", self.request)


=== Zope3/src/zope/app/browser/services/view.py 1.22 => 1.22.2.1 ===
--- Zope3/src/zope/app/browser/services/view.py:1.22	Thu Aug  7 13:41:03 2003
+++ Zope3/src/zope/app/browser/services/view.py	Wed Aug 13 09:36:04 2003
@@ -202,11 +202,11 @@
                 forInterface = "(Anything)"
             else:
                 forInterface = (
-                    forInterface.__module__ +"."+ forInterface.__name__)
+                    forInterface.__module__ +"."+ forInterface.getName())
 
             shortType = presentationType.__name__
             presentationType = (
-                presentationType.__module__ +"."+ presentationType.__name__)
+                presentationType.__module__ +"."+ presentationType.getName())
 
             registry = ContextWrapper(registry, self.context)
             view = getView(registry, "ChangeRegistrations", self.request)




More information about the Zope3-Checkins mailing list