[Zodb-checkins] CVS: StandaloneZConfig/ZConfig - info.py:1.24

Fred L. Drake, Jr. fred at zope.com
Thu Apr 15 00:04:07 EDT 2004


Update of /cvs-repository/StandaloneZConfig/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv26802

Modified Files:
	info.py 
Log Message:
documentation for internal add_valueinfo() method


=== StandaloneZConfig/ZConfig/info.py 1.23 => 1.24 ===
--- StandaloneZConfig/ZConfig/info.py:1.23	Wed Apr 14 23:49:12 2004
+++ StandaloneZConfig/ZConfig/info.py	Thu Apr 15 00:04:01 2004
@@ -125,8 +125,20 @@
         elif self.name != "+" and key is not None:
             raise ZConfig.SchemaError(
                 "unexpected key for default value")
-
         self.add_valueinfo(ValueInfo(value, position), key)
+
+    def add_valueinfo(self, vi, key):
+        """Actually add a ValueInfo to this key-info object.
+
+        The appropriate value of None-ness of key has already been
+        checked with regard to the name of the key, and has been found
+        permissible to add.
+
+        This method is a requirement for subclasses, and should not be
+        called by client code.
+        """
+        raise NotImplementedError(
+            "add_valueinfo() must be implemented by subclasses of BaseKeyInfo")
 
 
 class KeyInfo(BaseKeyInfo):




More information about the Zodb-checkins mailing list