CVS: tmda-cgi LocalConfig.py,1.8,1.9
Jim Ramsay <[email protected]> Tue, 16 Mar 2004 09:49:09 -0800
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27808
Modified Files:
LocalConfig.py
Log Message:
In the case of TMDA 1.1 or greater, disable the form-view editor as default
variable names are changing / being removed.
Index: LocalConfig.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/LocalConfig.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- LocalConfig.py 15 Dec 2003 16:19:38 -0000 1.8
+++ LocalConfig.py 16 Mar 2004 17:49:07 -0000 1.9
@@ -31,6 +31,7 @@
import Template
from TMDA import Defaults
+from TMDA import Version
# Regular expression searches
EscapeSearch = re.compile('(\\")')
@@ -138,7 +139,7 @@
FileContents = []
# Which view does the user want? Form or text?
- if PVars["LocalConfig"] == "Form":
+ if PVars["LocalConfig"] == "Form" and Version.TMDA < 1.1:
# User wants to view the config in form mode. First we need to dismantle
# the current config file in a way that we can rebuild it, then we need to
# verify that it is safe to proceed.
@@ -255,7 +256,7 @@
else:
FileContents = "".join(FileContents)
- if PVars["LocalConfig"] == "Text":
+ if PVars["LocalConfig"] == "Text" or Version.TMDA >= 1.1:
# We're in text view, hide form view
T["FormView"]
T["FileContents"] = FileContents