Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv23815

Modified Files:
        Session.py 
Log Message:
Moved statements around so that we check CGI_ACTIVE before using any CGI_*
variables.


Index: Session.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Session.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Session.py  31 Mar 2003 02:22:51 -0000      1.2
+++ Session.py  31 Mar 2003 19:33:51 -0000      1.3
@@ -170,7 +170,6 @@
 
       # Now that we know who we are, get our defaults
       from TMDA import Defaults
-      self.Vars["CLEANUP"] = Defaults.CGI_CLEANUP_ODDS;
 
       # Test CGI_ACTIVE
       if not Defaults.CGI_ACTIVE:
@@ -182,6 +181,7 @@
           """Add <tt>CGI_ACTIVE = 1</tt> to one of the configuration files or
 modify<br>file permissions to allow them to be read.""")
 
+      self.Vars["CLEANUP"] = Defaults.CGI_CLEANUP_ODDS;
       self.Save() # Save session & set user
 
   def Save(self):

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to