Skip to content

Commit 81601ad

Browse files
author
Richard Jones
committed
docco
1 parent e1c1013 commit 81601ad

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

roundup/htmltemplate.py

Lines changed: 14 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.80 2002-02-21 07:19:08 richard Exp $
18+
# $Id: htmltemplate.py,v 1.81 2002-02-21 07:21:38 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -655,8 +655,17 @@ def do_submit(self):
655655
else:
656656
return _('[Submit: not called from item]')
657657

658-
def do_classhelp(self, classname, properties):
658+
def do_classhelp(self, classname, properties, label='?', width='400',
659+
height='400'):
659660
'''pop up a javascript window with class help
661+
662+
This generates a link to a popup window which displays the
663+
properties indicated by "properties" of the class named by
664+
"classname". The "properties" should be a comma-separated list
665+
(eg. 'id,name,description').
666+
667+
You may optionally override the label displayed, the width and
668+
height. The popup window will be resizable and scrollable.
660669
'''
661670
return '<a href="javascript:help_window(\'classhelp?classname=%s&' \
662671
'properties=%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%(classname,
@@ -1082,6 +1091,9 @@ def render(self, form):
10821091

10831092
#
10841093
# $Log: not supported by cvs2svn $
1094+
# Revision 1.80 2002/02/21 07:19:08 richard
1095+
# ... and label, width and height control for extra flavour!
1096+
#
10851097
# Revision 1.79 2002/02/21 06:57:38 richard
10861098
# . Added popup help for classes using the classhelp html template function.
10871099
# - add <display call="classhelp('priority', 'id,name,description')">

0 commit comments

Comments
 (0)