From b04166953bfefac38d5d4dc4fe07bbbc36f6aff8 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 2 Jul 1998 19:36:40 +0000 Subject: Strip out all logging stuff. This will get taken care of by the CGI driver. --- Mailman/Cgi/admin.py | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'Mailman') diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 4d2efb395..e2f965024 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -31,12 +31,6 @@ from Mailman.htmlformat import * from Mailman.Crypt import crypt from Mailman import mm_cfg -try: - sys.stderr = Utils.StampedLogger("error", label = 'admin', - manual_reprime=1, nofail=0) -except IOError: - pass # Oh well - SOL on redirect, errors show thru. - CATEGORIES = [('general', "General Options"), ('members', "Membership Management"), ('privacy', "Privacy Options"), @@ -57,21 +51,6 @@ def isAuthenticated(list, password=None, SECRET="SECRET"): except Errors.MMBadPasswordError: AddErrorMessage(doc, 'Error: Incorrect admin password.') return 0 - except: - print "Content-type: text/html\n" - - print "

We're sorry, we hit a bug!

\n" - print "If you would like to help us identify the problem, please " - print "email a copy of this page to the webmaster for this site" - print 'with a description of what happened. Thanks!' - print "\n
"
-	  try:
-	    import traceback
-	    sys.stderr = sys.stdout
-	    traceback.print_exc()
-	  except:
-	    print "[failed to get traceback]"
-	  print "\n\n
" token = md5.new(SECRET + list_name + SECRET).digest() token = base64.encodestring(token) -- cgit v1.2.3-70-g09d2