Code

. #527416 ] roundup-admin uses undefined value
[roundup.git] / roundup / cgi_client.py
index b06b3b8d154787fd25382c51080455f96acc5ada..aeb5fd64e50b34e9f6c7c5197b2f0899be85bdba 100644 (file)
@@ -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);
 }
 
 </script>
@@ -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('<table border=1 cellspacing=0 cellpaddin=2>')
         w('<tr>')
@@ -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 <display call="classhelp('priority', 'id,name,description')">
+#      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 ***
 #