summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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