[Zope3-checkins] CVS: Packages/ZConfig - datatypes.py:1.1.2.17

Fred L. Drake, Jr. fred@zope.com
Fri, 20 Dec 2002 15:21:20 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv18257

Modified Files:
      Tag: zconfig-schema-devel-branch
	datatypes.py 
Log Message:
Use an argument name consistent with the upcoming documentation.


=== Packages/ZConfig/datatypes.py 1.1.2.16 => 1.1.2.17 ===
--- Packages/ZConfig/datatypes.py:1.1.2.16	Fri Dec 20 14:54:59 2002
+++ Packages/ZConfig/datatypes.py	Fri Dec 20 15:21:20 2002
@@ -219,13 +219,13 @@
                 t = self.search(name)
         return t
 
-    def register(self, name, datatype):
+    def register(self, name, conversion):
         if self._stock.has_key(name):
             raise ValueError("datatype name conflicts with built-in type: "
                              + `name`)
         if self._other.has_key(name):
             raise ValueError("datatype name already registered:" + `name`)
-        self._other[name] = datatype
+        self._other[name] = conversion
 
     def search(self, name):
         if not "." in name: