[Zodb-checkins] CVS: Packages/ZConfig - matcher.py:1.1.2.10
Fred L. Drake, Jr.
fred@zope.com
Wed, 11 Dec 2002 22:10:01 -0500
Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv19388
Modified Files:
Tag: zconfig-schema-devel-branch
matcher.py
Log Message:
Pick up the attribute name for named sections.
=== Packages/ZConfig/matcher.py 1.1.2.9 => 1.1.2.10 ===
--- Packages/ZConfig/matcher.py:1.1.2.9 Wed Dec 11 17:26:03 2002
+++ Packages/ZConfig/matcher.py Wed Dec 11 22:09:59 2002
@@ -88,7 +88,7 @@
attrnames = [None] * length
for i in range(length):
key, ci = self.info[i]
- attrnames[i] = ci.attribute
+ attrnames[i] = ci.attribute or key
v = values[i]
if v is None and ci.minOccurs:
default = ci.getdefault()