[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] CVS: Zope/lib/python/ZConfig - SchemaParser.py:1.1.2.15
From:       Chris McDonough <chrism () zope ! com>
Date:       2002-11-30 5:54:17
[Download RAW message or body]

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
 


_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://lists.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic