X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Fcgi_client.py;h=aeb5fd64e50b34e9f6c7c5197b2f0899be85bdba;hb=3e236cbcab0a816b8eabfafe59443c8aefd5cc2c;hp=b06b3b8d154787fd25382c51080455f96acc5ada;hpb=766d9fd3275405ca4ebf5558485c7091b31593ac;p=roundup.git diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index b06b3b8..aeb5fd6 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.111 2002-02-25 04:32:21 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) @@ -98,8 +99,8 @@ function submit_once() { return 1; } -function help_window(helpurl) { - HelpWin = window.open('%(base)s%(instance_path_name)s/' + helpurl, 'HelpWindow', 'scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400'); +function help_window(helpurl, width, height) { + HelpWin = window.open('%(base)s%(instance_path_name)s/' + helpurl, 'HelpWindow', 'scrollbars=yes,resizable=yes,toolbar=no,height='+height+',width='+width); } @@ -404,7 +405,7 @@ function help_window(helpurl) { w = self.write cn = self.form['classname'].value cl = self.db.classes[cn] - props = self.form['columns'].value.split(',') + props = self.form['properties'].value.split(',') w('') w('') @@ -1324,6 +1325,23 @@ def parsePropsFromForm(db, cl, form, nodeid=0): # # $Log: not supported by cvs2svn $ +# Revision 1.110 2002/02/21 07:19:08 richard +# ... and label, width and height control for extra flavour! +# +# Revision 1.109 2002/02/21 07:08:19 richard +# oops +# +# Revision 1.108 2002/02/21 07:02:54 richard +# The correct var is "HTTP_HOST" +# +# 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 *** #