From: richard Date: Thu, 21 Feb 2002 07:02:54 +0000 (+0000) Subject: The correct var is "HTTP_HOST" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3b80496fe2346f243c8681aabc78a23f6c389331;p=roundup.git The correct var is "HTTP_HOST" git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@648 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index b06b3b8..72cd86f 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.107 2002-02-21 06:57:38 richard Exp $ +# $Id: cgi_client.py,v 1.108 2002-02-21 07:02:54 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -57,7 +57,8 @@ class Client: machine = self.env['SERVER_NAME'] port = self.env['SERVER_PORT'] if port != '80': machine = machine + ':' + port - self.base = urlparse.urlunparse(('http', env['HOST'], url, None,None,None)) + self.base = urlparse.urlunparse(('http', env['HTTP_HOST'], url, + None, None, None)) if form is None: self.form = cgi.FieldStorage(environ=env) @@ -1324,6 +1325,14 @@ def parsePropsFromForm(db, cl, form, nodeid=0): # # $Log: not supported by cvs2svn $ +# Revision 1.107 2002/02/21 06:57:38 richard +# . Added popup help for classes using the classhelp html template function. +# - add +# to an item page, and it generates a link to a popup window which displays +# the id, name and description for the priority class. The description +# field won't exist in most installations, but it will be added to the +# default templates. +# # Revision 1.106 2002/02/21 06:23:00 richard # *** empty log message *** # diff --git a/roundup/scripts/roundup_server.py b/roundup/scripts/roundup_server.py index 1d6a80b..8cf2704 100644 --- a/roundup/scripts/roundup_server.py +++ b/roundup/scripts/roundup_server.py @@ -18,7 +18,7 @@ # """ HTTP Server that serves roundup. -$Id: roundup_server.py,v 1.3 2002-02-21 06:57:39 richard Exp $ +$Id: roundup_server.py,v 1.4 2002-02-21 07:02:54 richard Exp $ """ # python version check @@ -158,7 +158,7 @@ class RoundupRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): env['SCRIPT_NAME'] = '' env['SERVER_NAME'] = self.server.server_name env['SERVER_PORT'] = str(self.server.server_port) - env['HOST'] = self.headers['host'] + env['HTTP_HOST'] = self.headers['host'] decoded_query = query.replace('+', ' ') @@ -249,6 +249,14 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.3 2002/02/21 06:57:39 richard +# . Added popup help for classes using the classhelp html template function. +# - add +# to an item page, and it generates a link to a popup window which displays +# the id, name and description for the priority class. The description +# field won't exist in most installations, but it will be added to the +# default templates. +# # Revision 1.2 2002/01/29 20:07:15 jhermann # Conversion to generated script stubs #