[Zope3-checkins] CVS: StandaloneZConfig/ZConfig - schema.py:1.33
Fred L. Drake, Jr.
fred at zope.com
Tue Mar 16 17:02:39 EST 2004
Update of /cvs-repository/StandaloneZConfig/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv11722/ZConfig
Modified Files:
schema.py
Log Message:
repeating the description element within a context is an error
=== StandaloneZConfig/ZConfig/schema.py 1.32 => 1.33 ===
--- StandaloneZConfig/ZConfig/schema.py:1.32 Tue Mar 16 15:47:24 2004
+++ StandaloneZConfig/ZConfig/schema.py Tue Mar 16 17:02:08 2004
@@ -284,6 +284,9 @@
self._stack[-1].adddefault(data, self._position, key)
def characters_description(self, data):
+ if self._stack[-1].description is not None:
+ self.error(
+ "at most one <description> may be used for each element")
self._stack[-1].description = data
def characters_example(self, data):
More information about the Zope3-Checkins
mailing list