Permalink
Browse files

documentation for internal add_valueinfo() method

svn path=/ZConfig/trunk/; revision=413
  • Loading branch information...
1 parent dd5837a commit 573f871177a9902dc3dc125504746ecf76384026 fdrake committed Apr 15, 2004
Showing with 13 additions and 1 deletion.
  1. +13 −1 info.py
View
14 info.py
@@ -125,9 +125,21 @@ def adddefault(self, value, position, key=None):
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):

0 comments on commit 573f871

Please sign in to comment.