summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-12-11 15:38:13 +0000
committerbwarsaw1999-12-11 15:38:13 +0000
commit8575b37cf773a4faa6b064b76f810119e5944dc9 (patch)
treec43f7cf5990826a684422493116b19b0bdde281b
parentd592f527984ee286d94c2e921ca8b224cb52880d (diff)
downloadmailman-8575b37cf773a4faa6b064b76f810119e5944dc9.tar.gz
mailman-8575b37cf773a4faa6b064b76f810119e5944dc9.tar.zst
mailman-8575b37cf773a4faa6b064b76f810119e5944dc9.zip
-rwxr-xr-xcron/gate_news12
1 files changed, 12 insertions, 0 deletions
diff --git a/cron/gate_news b/cron/gate_news
index 7b86fb033..fd50998e0 100755
--- a/cron/gate_news
+++ b/cron/gate_news
@@ -57,6 +57,18 @@ from Mailman import LockFile
from Mailman import Message
from Mailman.Logging.Utils import LogStdErr
+# TBD: Duplicates functionality in scripts/driver. This should be
+# re-evaluated when we require Python 1.5.2.
+#
+# pre-load the `cgi' module. we do this because we're distributing a slightly
+# different version than the standard Python module. it's essentially Python
+# 1.5.2's module, with an experimental patch to handle clients that give bogus
+# or non-existant content-type headers.
+#
+# we assign sys.modules['cgi'] to this special cgi module so any other module
+# that tries to import cgi will get our special one
+import Mailman.pythonlib.cgi
+sys.modules['cgi'] = Mailman.pythonlib.cgi
# Work around known problems with some RedHat cron daemons
import signal