CVS: tmda-cgi PendList.py,1.31,1.32 defaults.ini,1.23,1.24

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-serv14808

Modified Files:
	PendList.py defaults.ini 
Log Message:
Added NoOverride option so admins may disable resource-hungry searching


Index: PendList.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/PendList.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- PendList.py	6 Dec 2003 22:41:59 -0000	1.31
+++ PendList.py	9 Dec 2003 18:08:02 -0000	1.32
@@ -583,6 +583,10 @@
         ReadArrayText += ", "
     T["ReadArray"] = ReadArrayText
 
+    # Disallow searching if defaults.ini prohibits
+    if not Searching and PVars[("NoOverride", "MaySearchPendList")][0].lower() == "n":
+      T['searchForm']
+
   # No messages to display
   else:
     if Searching:

Index: defaults.ini
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/defaults.ini,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- defaults.ini	17 Nov 2003 02:34:43 -0000	1.23
+++ defaults.ini	9 Dec 2003 18:08:03 -0000	1.24
@@ -25,6 +25,7 @@
 MayEditLocalConfig = Yes
 MayEditTemplates   = Yes
 MayInstall         = Yes
+MaySearchPendList  = Yes
 Sendmail           =
 SpamCopFilter      =
 UninstallBackupTGZ = TMDA_restore.tgz
@@ -47,7 +48,7 @@
 [General]
 CSEncoding   = iso-8859-1
 SpamCopAddr  =
-Theme        = Blue
+Theme        = TMDA-X
 UseJSConfirm = Yes
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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.