From: richard Date: Mon, 23 Jul 2001 08:53:44 +0000 (+0000) Subject: Fixed the ROUNDUPS decl in roundup-server X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a7b64138dccd29c8420afbea3c87af42475aa69a;p=roundup.git Fixed the ROUNDUPS decl in roundup-server Move the installation notes to INSTALL git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@56 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/README b/README index 9726db8..45a6b9c 100644 --- a/README +++ b/README @@ -11,78 +11,9 @@ The stylesheet included with this package has been copied from the Zope management interface and presumably belongs to Digital Creations. -TODO: Instructions need re-writing!! - - 2. Installation =============== -These instructions work on redhat 6.2 and mandrake 8.0 - with the caveat -that these systems don't come with python 2.0 or newer installed, so you'll -have to upgrade python before this stuff will work. - -Roundup is configurable using a localconfig.py file. It may have the -following variable declarations: - - ROUNDUP_HOME - This is the root directory for roundup - MAILHOST - The SMTP mail host that roundup will use to send mail - MAIL_DOMAIN - The domain name used for email addresses - -Any further configuration should be possible by editing config.py directly. -The email addresses used by the system by default are: - - issue_tracker@MAIL_DOMAIN - submissions of issues - roundup-admin@MAIL_DOMAIN - roundup's internal use (problems, etc) - - -2.0 Prerequisites ------------------ -Either: - . Python 2.0 with pydoc installed. See http://www.lfw.org/ for pydoc. -or - . Python 2.1 - -Both need the bsddb module. - - -2.1 Initial Setup ------------------ - - -2.2 Mail --------- -Set up a mail alias called "issue_tracker" as: - "|/usr/bin/python /home/httpd/html/roundup/roundup-mailgw " - -In some installations (e.g. RedHat 6.2 I think) you'll need to set up smrsh -so sendmail will accept the pipe command. In that case, symlink -/etc/smrsh/python to /usr/bin/python and change the command to: - "|python /home/httpd/html/roundup/roundup-mailgw " - - -2.3 Web Interface ------------------ -This software will work through apache or stand-alone. - -Stand-alone: - 1. Edit server.py at the bottom to set your hostname and a port that is free. - 2. "python server.py" - 3. Load up the page "/" using the port number you set. - -Apache: - 1. Make sure roundup.cgi is executable - 2. Edit your /etc/httpd/conf/httpd.conf and make sure that the - /home/httpd/html/roundup/roundup.cgi script will be treated as a CGI - script. - 3. Add the following to your /etc/httpd/conf/httpd.conf: -------8<------- snip here ------8<------- -RewriteEngine on -RewriteCond %{HTTP:Authorization} ^(.*) -RewriteRule ^/roundup/roundup.cgi(.*) /home/httpd/html/roundup/roundup.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] -------8<------- snip here ------8<------- - note: the RewriteRule must be on one line - no breaks - 4. Re-start your apache to re-load the config - 5. Load up the page "/roundup/roundup.cgi/" - +For installation notes, please see the file INSTALL.TXT 3. Usage @@ -92,8 +23,9 @@ interface. 3.1 Command-line ---------------- -The command-line tool is called "roundup.py" and is used for most low-level +The command-line tool is called "roundup-admin" and is used for most low-level database manipulations such as: + . creating a database instance . redefining the list of products ("create" and "retire" commands) . adding users manually, or setting their passwords ("create" and "set") . other stuff - run it with no arguments to get a better description of @@ -102,7 +34,7 @@ database manipulations such as: 3.2 E-mail ---------- -See the docstring at the start of the roundup-mailgw.py source file. +See the docstring at the start of the roundup/mailgw.py source file. 3.3 Web @@ -220,5 +152,6 @@ richard@bizarsoftware.com.au ========= Well, Ping, of course ;) -Anthony Baxter, for some good first-release feedback. +Anthony Baxter, for some good first-release feedback. And then continuing +support through development on sourceforge. diff --git a/roundup-server b/roundup-server index fb8a041..3c30c63 100755 --- a/roundup-server +++ b/roundup-server @@ -3,7 +3,7 @@ Stolen from CGIHTTPServer -$Id: roundup-server,v 1.2 2001-07-23 04:05:05 anthonybaxter Exp $ +$Id: roundup-server,v 1.3 2001-07-23 08:53:44 richard Exp $ """ import sys @@ -31,7 +31,7 @@ from roundup import date, hyperdb, hyper_bsddb, roundupdb, htmltemplate # # This indicates where the Roundup instance lives -ROUNDUPS = { +ROUNDUP_INSTANCE_HOMES = { 'test': '/tmp/roundup_test', } @@ -98,8 +98,8 @@ class RoundupRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): raise ValueError, 'No instance specified' l_path = string.split(rest, '/') instance = urllib.unquote(l_path[1]) - if ROUNDUPS.has_key(instance): - instance_home = ROUNDUPS[instance] + if ROUNDUP_INSTANCE_HOMES.has_key(instance): + instance_home = ROUNDUP_INSTANCE_HOMES[instance] module_path, instance = os.path.split(instance_home) sys.path.insert(0, module_path) try: @@ -220,6 +220,9 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.2 2001/07/23 04:05:05 anthonybaxter +# actually quit if python version wrong +# # Revision 1.1 2001/07/23 03:46:48 richard # moving the bin files to facilitate out-of-the-boxness #