[Zodb-checkins] CVS: Zope/lib/python/ZConfig - SchemaParser.py:1.1.2.15
Chris McDonough
chrism@zope.com
Sat, 30 Nov 2002 00:54:18 -0500
Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv13880
Modified Files:
Tag: chrism-install-branch
SchemaParser.py
Log Message:
Add error-producing setSub routine to freeform section.
=== Zope/lib/python/ZConfig/SchemaParser.py 1.1.2.14 => 1.1.2.15 ===
--- Zope/lib/python/ZConfig/SchemaParser.py:1.1.2.14 Tue Nov 26 18:52:33 2002
+++ Zope/lib/python/ZConfig/SchemaParser.py Sat Nov 30 00:54:16 2002
@@ -673,6 +673,10 @@
self._data = {}
return ConfigSection.__init__(self, *arg, **kw)
+ def setSub(self, sub, meta_type, type, name):
+ raise TypeError, ('a schema may not declare subsections or subkeys '
+ 'within in a freeform section')
+
class ConfigRoot(ConfigSection):
__implements__ = IConfigRoot