Skip to content

Commit e1c1013

Browse files
author
Richard Jones
committed
... and label, width and height control for extra flavour!
1 parent c3a09d7 commit e1c1013

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

roundup/cgi_client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.109 2002-02-21 07:08:19 richard Exp $
18+
# $Id: cgi_client.py,v 1.110 2002-02-21 07:19:08 richard Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -100,7 +100,7 @@ def header(self, headers={'Content-Type':'text/html'}):
100100
}
101101
102102
function help_window(helpurl) {
103-
HelpWin = window.open('%(base)s%(instance_path_name)s/' + helpurl, 'HelpWindow', 'scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400');
103+
HelpWin = window.open('%(base)s%(instance_path_name)s/' + helpurl, 'HelpWindow', 'scrollbars=yes,resizable=yes,toolbar=no,height='+height+',width='+width);
104104
}
105105
106106
</script>
@@ -1325,6 +1325,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
13251325

13261326
#
13271327
# $Log: not supported by cvs2svn $
1328+
# Revision 1.109 2002/02/21 07:08:19 richard
1329+
# oops
1330+
#
13281331
# Revision 1.108 2002/02/21 07:02:54 richard
13291332
# The correct var is "HTTP_HOST"
13301333
#

roundup/htmltemplate.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.79 2002-02-21 06:57:38 richard Exp $
18+
# $Id: htmltemplate.py,v 1.80 2002-02-21 07:19:08 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -659,7 +659,8 @@ def do_classhelp(self, classname, properties):
659659
'''pop up a javascript window with class help
660660
'''
661661
return '<a href="javascript:help_window(\'classhelp?classname=%s&' \
662-
'properties=%s\')"><b>(?)</b></a>'%(classname, properties)
662+
'properties=%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%(classname,
663+
properties, width, height, label)
663664
#
664665
# INDEX TEMPLATES
665666
#
@@ -1081,6 +1082,14 @@ def render(self, form):
10811082

10821083
#
10831084
# $Log: not supported by cvs2svn $
1085+
# Revision 1.79 2002/02/21 06:57:38 richard
1086+
# . Added popup help for classes using the classhelp html template function.
1087+
# - add <display call="classhelp('priority', 'id,name,description')">
1088+
# to an item page, and it generates a link to a popup window which displays
1089+
# the id, name and description for the priority class. The description
1090+
# field won't exist in most installations, but it will be added to the
1091+
# default templates.
1092+
#
10841093
# Revision 1.78 2002/02/21 06:23:00 richard
10851094
# *** empty log message ***
10861095
#

0 commit comments

Comments
 (0)