CVS: tmda-cgi Theme.py,1.5,1.6

Jim Ramsay <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv8839

Modified Files:
	Theme.py 
Log Message:
Fixed bug:

Before - Changing theme erased theme values, changing values reverted theme back to "Blue".
After - It works :)


Index: Theme.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Theme.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Theme.py	3 May 2003 16:54:51 -0000	1.5
+++ Theme.py	22 May 2003 17:23:42 -0000	1.6
@@ -34,7 +34,7 @@
 
   global ThemesDir
 
-  if Form.has_key("subcmd"):
+  if Form.has_key("subcmd") and Form["subcmd"].value != "save":
     PVars[("General", "Theme")] = Form["subcmd"].value
     PVars.Save()
     if PVars.has_key(("Theme", "Info")):
@@ -82,7 +82,7 @@
 
   # Save changes?
   FormVars = re.split("[,\s]+", T["FormVars"])
-  if Form.has_key("subcmd"):
+  if Form.has_key("subcmd") and Form["subcmd"].value == "save":
     for Var in FormVars:
       Parts = Var.split(":")
       Key = "%s%s" % tuple(Parts[0:2])

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.