[Nevow] Zomne improvements

Lethalman <[email protected]> Sun, 1 Jan 2006 11:09:42 +0100
Newsgroups gmane.comp.python.quotient.dev
Message-ID <[email protected]>
(first sorry for my poor English)

I'm using Zomne to get Nevow working with a CGI hosting, and it works very well.
Now, i would like to suggest to make something more automated, a
complete toolkit to get Zomne working in a few time. First of all, a
fix in zomne.c (sorry for the missing patch):

from:
sprintf(addr.sun_path, "%s%s", basedir, "zomne.socket");
to:
sprintf(addr.sun_path, "%s/%s", basedir, "zomne.socket");

Then, specify the path of `python` and a logfile, to be:
sprintf(scratch, "%s twistd -oy %s &> %s", python_path, twistd_path, ...);

Delete zomne_startup_complete.socket at the next page request.

==

A zomne_kill.cgi like this to restart the server:
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
system("kill -9 `cat twistd.pid`");
unlink "twistd.pid";
unlink "zomne.socket";

==

A zomne_install.cgi:
1) Prompt a web page to specify what zomne cgi to use (it could get
different names then .name.cgi.dir) and the python path.
2) Save in .name.cgi.dir and in .python.bin.path respectively the
`pwd` output and the python binary path
3) Create a directory named as the project name, 'packages' directory
and 'lib' directory
3) Next step to install_package.cgi

An install_package.cgi (a setup.py frontend):
1) Prompt a web page with the list of tar.gz contained in the packages directory
2) Let the user select what packages to install
3) Install the selected software in 'lib'

==

A twistd_log.cgi to view twistd.log

==

Conclusion: the user won't get painfully installing zomne and python
libraries eventough it's much simple, most of all for the sockets, but
this system could be used both manually or automated as is.

Logically everything must be protected... pratically there should be a
simple CGI application to manage the zomne process.

--
www.italianpug.org - Italian Python User Group Founder
www.lethalman.net - Thoughts about computer technologies