[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/Scripts - Bindings.py:1.9.6.3

Brian Lloyd brian at zope.com
Wed Jan 21 13:15:17 EST 2004


Update of /cvs-repository/Zope/lib/python/Shared/DC/Scripts
In directory cvs.zope.org:/tmp/cvs-serv11528

Modified Files:
      Tag: Zope-2_6-branch
	Bindings.py 
Log Message:
dont use __name


=== Zope/lib/python/Shared/DC/Scripts/Bindings.py 1.9.6.2 => 1.9.6.3 ===
--- Zope/lib/python/Shared/DC/Scripts/Bindings.py:1.9.6.2	Wed Jan 21 12:08:28 2004
+++ Zope/lib/python/Shared/DC/Scripts/Bindings.py	Wed Jan 21 13:15:16 2004
@@ -162,16 +162,16 @@
        need to take explicit action to fix existing sites."""
 
     def __init__(self, name):
-        self.__name = name
+        self._name = name
 
     __allow_access_to_unprotected_subobjects__ = 1
 
     def __getattr__(self, name, default=None):
-        name = self.__dict__['__name']
+        name = self.__dict__['_name']
         raise Unauthorized('Not authorized to access binding: %s' % name)
 
     def __getitem__(self, key, default=None):
-        name = self.__dict__['__name']
+        name = self.__dict__['_name']
         raise Unauthorized('Not authorized to access binding: %s' % name)
 
 




More information about the Zope-Checkins mailing list