cgi-bin from twisted.web

I would like to run mailman from my twisted.web server. How do I execute mailman's cgi-bin binaries, given that twcgi seems to support only scripts? If twistedmatrix.com is running mailman with a twisted web server, it would seem that the answer has been figured out by someone already. -- Ed Suominen Registered Patent Agent Open Source Developer (Yes, both...) Web Site: http://www.eepatents.com

On 7/20/2004, "Ed Suominen" <general@eepatents.com> wrote:
I would like to run mailman from my twisted.web server. How do I execute mailman's cgi-bin binaries, given that twcgi seems to support only scripts? If twistedmatrix.com is running mailman with a twisted web server, it would seem that the answer has been figured out by someone already.
Moshe's twisted-web package for Debian supports a cgi-bin directory, or so I thought last time I looked. Have you checked that out yet? I use twisted-web to serve all my Twisted stuff, and while it may not support certain things (like logging vhost domain names, nudge nudge new-web people), it's definitely flexible enough to let you serve mailman. -- Alex Levy WWW: http://mesozoic.geecs.org "Never let your sense of morals prevent you from doing what is right." -- Salvor Hardin, Isaac Asimov's _Foundation_

Ed Suominen wrote:
I would like to run mailman from my twisted.web server. How do I execute mailman's cgi-bin binaries, given that twcgi seems to support only scripts? If twistedmatrix.com is running mailman with a twisted web server, it would seem that the answer has been figured out by someone already.
I already helped Ed on IRC, but for the sake of convenience to archive-readers and other interested parties, here's the way I deployed mailman on divmod.org. == /home/mailman/twisted.run/mailman.tac == import sys from twisted.internet import app from twisted.web import server, distrib, twcgi, static from twisted.spread import pb application = app.Application('mailman-web') r = twcgi.CGIDirectory('/home/mailman/run/cgi-bin') r.putChild('pipermail', static.File('/home/mailman/run/archives/public')) site = server.Site(r) application.listenUNIX('/home/mailman/.twistd-web-pb', pb.BrokerFactory(distrib.ResourcePublisher(site))) -- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://radix.twistedmatrix.com/
participants (3)
-
Alex Levy
-
Christopher Armstrong
-
Ed Suominen