diff --git a/tconfpy.py b/tconfpy.py index ceae2d8..13d20a6 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.166 2004/04/08 22:46:52 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.167 2004/04/08 22:56:37 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -305,6 +305,7 @@ Messages["eVALLARGE"] = FILENUM + "%s Is Larger Than The Maximum Allowed, %s, For Variable '%s'" Messages["eVALSMALL"] = FILENUM + "%s Is Smaller Than The Minimum Allowed, %s, For Variable '%s'" Messages["eVARNAMESPC"] = FILENUM + "Variable Names May Not Contain Whitespace" +Messages["eVARHASDELIM"] = FILENUM + "Variable Names May Not Include The '%s' Or '%s' Characters" % (DELIML, DELIMR) Messages["eVARNEW"] = FILENUM + "New Variable Creation Not Permitted" Messages["eVARNONAME"] = FILENUM + "Variable Name Evaluates To Null String. Not Permitted" Messages["eVARREADONLY"] = FILENUM + "Variable '%s' Is Read-Only. Cannot Change Its Value" @@ -1081,6 +1082,11 @@ elif not l: ErrorMsg("eVARNONAME", (cfgfile, linenum)) + + # Variables may not contain reference delimiters + + elif l.count(DELIML) or l.count(DELIMR): + ErrorMsg("eVARHASDELIM", (cfgfile, linenum)) # Suppress attempts to set variables named starting # with certain reserved symbols because dereferencing