[Zope-Checkins] CVS: Packages/ZConfig - cfgparser.py:1.4

Fred L. Drake, Jr. fred@zope.com
Thu, 9 Jan 2003 10:34:48 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv29779

Modified Files:
	cfgparser.py 
Log Message:
Enable $-substitution in %define values.

=== Packages/ZConfig/cfgparser.py 1.3 => 1.4 ===
--- Packages/ZConfig/cfgparser.py:1.3	Mon Jan  6 14:35:41 2003
+++ Packages/ZConfig/cfgparser.py	Thu Jan  9 10:34:14 2003
@@ -157,7 +157,7 @@
             self.error("cannot redefine " + `defname`)
         if not isname(defname):
             self.error("not a substitution legal name: " + `defname`)
-        self.defs[defname] = defvalue
+        self.defs[defname] = substitute(defvalue, self.defs)
 
     def error(self, message):
         raise ConfigurationSyntaxError(message, self.url, self.lineno)