On 19 July 2002, Samir Patel said:
> I am trying to run splat and I am getting following
> error log in logfile:
> Any ideas?
splat.cgi is wrong -- it predates the addition of session management to
SPLAT!. splat.cgi is also completely untested and unused -- I wrote a
grotesque custom hack to use SPLAT! on our web site.
This patch *might* fix things for you:
--- splat.cgi 19 Oct 2001 23:42:22 -0000 1.3
+++ splat.cgi 22 Jul 2002 15:23:22 -0000
@@ -3,8 +3,8 @@
import sys, os
sys.stderr.write("starting %s (pid %d)\n" % (sys.argv[0], os.getpid()))
-from quixote import enable_ptl, Publisher
-from splat.options import OptionParser, get_config
+from quixote import enable_ptl, SessionPublisher
+from splat.config import OptionParser, get_config
sys.stderr.write("imported everything OK\n")
@@ -18,7 +18,7 @@
config = get_config(options)
enable_ptl()
-pub = Publisher("splat.web", config=config)
+pub = SessionPublisher("splat.web", config=config)
pub.setup_logs()
sys.stderr.write("set everything up OK, transferring to Quixote's publisher\n")
pub.publish_cgi()
Then again, it might not. Let me know if it works.
> ( I have change 1 thing in splat.cgi
> "from splat.options import OptionParser, get_config"
> to
> from splat.config import OptionParser, get_config )
> since there is no splat.options file.
Oh yeah -- did I mention splat.cgi is untested and unused? ;-)
Greg