diff --git a/tconfpy.py b/tconfpy.py index f7ab1ce..6063bc0 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.159 2004/04/02 09:11:55 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.160 2004/04/02 09:21:19 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -300,6 +300,7 @@ Messages["eTYPEBAD"] = FILENUM + "Type Mismatch. '%s' Must Be Assigned Values Of Type %s Only" 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["eVARDOLLAR"] = FILENUM + "Variable Name Cannot Begin With The '%s' Symbol" % DOLLAR Messages["eVARNAMESPC"] = FILENUM + "Variable Names May Not Contain Whitespace" Messages["eVARNONAME"] = FILENUM + "Variable Name Evaluates To Null String. Not Permitted" Messages["eVARREADONLY"] = FILENUM + "Variable '%s' Is Read-Only. Cannot Change Its Value" @@ -1019,6 +1020,11 @@ if not l: ErrorMsg("eVARNONAME", (cfgfile, linenum)) + # Suppress attempts to set variables named with leading DOLLAR + + elif l[0] == DOLLAR: + ErrorMsg("eVARDOLLAR", (cfgfile, linenum)) + # Suppress any attempt to change a RO variable elif l in SymTable and not SymTable[l].Writeable: