[Zope3-checkins] CVS: Zope3/src/zope/schema - _bootstrapfields.py:1.18

Fred L. Drake, Jr. fred@zope.com
Fri, 13 Jun 2003 11:25:47 -0400


Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv3262

Modified Files:
	_bootstrapfields.py 
Log Message:
Remove the extra leading underscore for the descriptor's internal data
so it's more easily subclassed.


=== Zope3/src/zope/schema/_bootstrapfields.py 1.17 => 1.18 ===
--- Zope3/src/zope/schema/_bootstrapfields.py:1.17	Mon May 19 16:24:09 2003
+++ Zope3/src/zope/schema/_bootstrapfields.py	Fri Jun 13 11:25:45 2003
@@ -27,10 +27,10 @@
 class ValidatedProperty:
 
     def __init__(self, name, check=None):
-        self.__info = name, check
+        self._info = name, check
 
     def __set__(self, inst, value):
-        name, check = self.__info
+        name, check = self._info
         if value is not None:
             if check is not None:
                 check(inst, value)