[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - globalbrowsermenuservice.py:1.21.4.1 icon.py:1.10.4.1 metaconfigure.py:1.12.2.1 viewmeta.py:1.30.4.1

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


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

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

=== Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py 1.21 => 1.21.4.1 ===
--- Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py:1.21	Sat Aug  2 22:13:17 2003
+++ Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py	Wed Aug 13 09:36:28 2003
@@ -207,7 +207,7 @@
             discriminator = None,
             callable = handler,
             args = (Interfaces, 'provideInterface',
-                    self.interface.__module__+'.'+self.interface.__name__,
+                    self.interface.__module__+'.'+self.interface.getName(),
                     self.interface)
             )
 


=== Zope3/src/zope/app/publisher/browser/icon.py 1.10 => 1.10.4.1 ===
--- Zope3/src/zope/app/publisher/browser/icon.py:1.10	Sat Aug  2 22:13:17 2003
+++ Zope3/src/zope/app/publisher/browser/icon.py	Wed Aug 13 09:36:28 2003
@@ -63,7 +63,7 @@
 def IconDirective(_context, name, for_, file=None, resource=None,
                   layer='default', alt=None):
 
-    iname = for_.__name__
+    iname = for_.getName()
 
     if alt is None:
         alt = iname
@@ -102,6 +102,6 @@
         discriminator = None,
         callable = handler,
         args = (Interfaces, 'provideInterface',
-                for_.__module__+'.'+for_.__name__,
+                for_.__module__+'.'+for_.getName(),
                 for_)
         )


=== Zope3/src/zope/app/publisher/browser/metaconfigure.py 1.12 => 1.12.2.1 ===
--- Zope3/src/zope/app/publisher/browser/metaconfigure.py:1.12	Mon Aug 11 10:58:07 2003
+++ Zope3/src/zope/app/publisher/browser/metaconfigure.py	Wed Aug 13 09:36:28 2003
@@ -50,6 +50,6 @@
             discriminator = None,
             callable = handler,
             args = (Interfaces, 'provideInterface',
-                    for_.__module__+'.'+for_.__name__,
+                    for_.__module__+'.'+for_.getName(),
                     for_)
             )


=== Zope3/src/zope/app/publisher/browser/viewmeta.py 1.30 => 1.30.4.1 ===
--- Zope3/src/zope/app/publisher/browser/viewmeta.py:1.30	Sat Aug  2 22:13:17 2003
+++ Zope3/src/zope/app/publisher/browser/viewmeta.py	Wed Aug 13 09:36:28 2003
@@ -391,7 +391,7 @@
             discriminator = None,
             callable = handler,
             args = (Interfaces, 'provideInterface',
-                    for_.__module__+'.'+for_.__name__, for_)
+                    for_.__module__+'.'+for_.getName(), for_)
             )
 
 def _handle_menu(_context, menu, title, for_, name, permission):




More information about the Zope3-Checkins mailing list