Update of /cvsroot/mailman/mailman/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv22660

Modified Files:
        driver 
Log Message:
Promote STEALTH_MODE to a Defaults.py/mm_cfg.py variable and default
it to On.


Index: driver
===================================================================
RCS file: /cvsroot/mailman/mailman/scripts/driver,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -d -r2.7 -r2.8
--- driver      19 Apr 2003 20:41:43 -0000      2.7
+++ driver      10 Oct 2003 04:24:09 -0000      2.8
@@ -22,16 +22,6 @@
 
 # From here on we are as bulletproof as possible!
 
-# The driver script prints out a lot of information when a Mailman bug is
-# encountered.  This really helps for development, but it also reveals
-# information about the host system that some administrators are not
-# comfortable with.  By setting STEALTH_MODE to 1, you disable the printing of
-# this information to the web pages.  This information is still, and always,
-# printed in the error logs.
-STEALTH_MODE = 0
-
-
-
 # This standard driver script is used to run CGI programs, wrapped in code
 # that catches errors, and displays them as HTML.  This guarantees that
 # (almost) any problem in the Mailman software doesn't result in a Web server
@@ -51,6 +41,7 @@
 #   This would indicate a serious problem with the Python installation, so
 #   it's also highly unlikely to occur.
 
+
 
 def run_main():
     # These will ensure that even if something between now and the
@@ -63,9 +54,9 @@
         from Mailman.Logging.StampedLogger import StampedLogger
         logger = StampedLogger('error',
                                label='admin',
-                               manual_reprime=1,
-                               nofail=0,
-                               immediate=1)
+                               manual_reprime=True,
+                               nofail=False,
+                               immediate=True)
         # Collect stdout in a cStringIO so that if /any/ errors occur during
         # printing it won't mess up our diagnostics page.
         from cStringIO import StringIO
@@ -112,9 +103,10 @@
     except ImportError:
         traceback = None
     try:
-        from Mailman.mm_cfg import VERSION
+        from Mailman.mm_cfg import VERSION, STEALTH_MODE
     except ImportError:
         VERSION = '<undetermined>'
+        STEALTH_MODE = False
 
     # Write to the log file first.
     print >> logfp, '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
@@ -162,6 +154,12 @@
         import os
     except ImportError:
         os = None
+
+    try:
+        from Mailman.mm_cfg import STEALTH_MODE
+    except ImportError:
+        VERSION = '<undetermined>'
+        STEALTH_MODE = False
 
     # Write some information about our Python executable to the log file.
     print >> logfp, '[----- Python Information -----]'



_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to