CVS: tmda/TMDA Defaults.py,1.194,1.195
"Jason R. Mastaler" <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda/TMDA In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12557 Modified Files: Defaults.py Log Message: User config file simplification enhancement suggestion from Tim Legant. Allow people to specify any boolean config values with any of several keywords instead of using 0 or 1. 0 and 1 would still work, of course, but any of the keywords would, too. True and False are part of Python 2.3, the rest are just synonyms. Index: Defaults.py =================================================================== RCS file: /cvsroot/tmda/tmda/TMDA/Defaults.py,v retrieving revision 1.194 retrieving revision 1.195 diff -u -r1.194 -r1.195 --- Defaults.py 18 Jan 2004 03:40:40 -0000 1.194 +++ Defaults.py 2 Feb 2004 21:45:57 -0000 1.195 @@ -25,6 +25,10 @@ information below. """ +# Some convenient constants +ON = On = on = YES = Yes = yes = TRUE = true = True +OFF = Off = off = NO = No = no = FALSE = false = False + # NEVER make configuration changes to this file. ALWAYS make them in # /etc/tmdarc or ~/.tmda/config instead.