Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv26635

Modified Files:
        Defaults.py 
Log Message:
Bugfix:

* CGI_PATH_TO_PENDING was going back three directories from the current program
path instead of two.

Removed:

* CGI_SESSION_PREFIX was removed because the value was needed BEFORE
Defaults.py gets imported.  I ended up hard coding this in a constant in
contrib/cgi/Session.py.

Added:

* CGI_USER was added to control which user should be used to create temporary
session files.


Index: Defaults.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Defaults.py,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -r1.156 -r1.157
--- Defaults.py 23 Nov 2002 05:53:26 -0000      1.156
+++ Defaults.py 25 Nov 2002 16:21:10 -0000      1.157
@@ -489,7 +489,7 @@
     # Default is "../../bin/tmda-pending" (which assumes you are running
     # directly out of the source tree).
     if not vars().has_key('CGI_PATH_TO_PENDING'):
-        CGI_PATH_TO_PENDING = os.path.split(os.path.dirname(PARENTDIR))[0] # '../../'
+        CGI_PATH_TO_PENDING = os.path.split(PARENTDIR)[0] # '../../'
         CGI_PATH_TO_PENDING = os.path.join(CGI_PATH_TO_PENDING, 'bin', 'tmda-pending')
 
     # CGI_SESSION_EXP
@@ -505,20 +505,6 @@
     if not vars().has_key('CGI_SESSION_EXP'):
         CGI_SESSION_EXP = 300
 
-    # CGI_SESSION_PREFIX
-    # Session data is stored in temporary files between page hits.
-    # CGI_SESSION_PREFIX describes where these files will be stored and how
-    # they should be prefixed.  The actual session number will be appended
-    # to the prefix to form the file name (ex: /tmp/PySess.jI92Xzo8).
-    # The files should be stored in a world-writable directory like /tmp.
-    #
-    # Example:
-    # CGI_SESSION_PREFIX = "/tmp/sess"
-    #
-    # Default is "/tmp/PySess.".
-    if not vars().has_key('CGI_SESSION_PREFIX'):
-        CGI_SESSION_PREFIX = "/tmp/PySess."
-
     # CGI_USE_JS_CONFIRM
     # Enables a pop-up confirmation box before any message is deleted or
     # blacklisted.  Must be disabled if you will be surfing tmda-cgi in
@@ -531,6 +517,18 @@
     # Default is 1.
     if not vars().has_key('CGI_USE_JS_CONFIRM'):
         CGI_USE_JS_CONFIRM = 1
+
+    # CGI_USER
+    # Defines the user name to use at non-critical times (such as reading
+    # and writing session files.  CGI_USER is only signifigant when running
+    # in system-wide mode.  See contrib/cgi/INSTALL for more about modes.
+    #
+    # Example:
+    # CGI_USER = "apache"
+    #
+    # Default is "nobody".
+    if not vars().has_key('CGI_USER'):
+        CGI_USER = "nobody"
 
 # CONFIRM_ADDRESS
 # An optional e-mail address to use for creating confirmation

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

Reply via email to