changeset 639:2f3e82a69eb5

docco
author Richard Jones <richard@users.sourceforge.net>
date Thu, 21 Feb 2002 07:21:38 +0000
parents 21b3cfa7d99a
children 7dd13fd5d8ea
files roundup/htmltemplate.py
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Thu Feb 21 07:19:08 2002 +0000
+++ b/roundup/htmltemplate.py	Thu Feb 21 07:21:38 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: htmltemplate.py,v 1.80 2002-02-21 07:19:08 richard Exp $
+# $Id: htmltemplate.py,v 1.81 2002-02-21 07:21:38 richard Exp $
 
 __doc__ = """
 Template engine.
@@ -655,8 +655,17 @@
         else:
             return _('[Submit: not called from item]')
 
-    def do_classhelp(self, classname, properties):
+    def do_classhelp(self, classname, properties, label='?', width='400',
+            height='400'):
         '''pop up a javascript window with class help
+
+           This generates a link to a popup window which displays the 
+           properties indicated by "properties" of the class named by
+           "classname". The "properties" should be a comma-separated list
+           (eg. 'id,name,description').
+
+           You may optionally override the label displayed, the width and
+           height. The popup window will be resizable and scrollable.
         '''
         return '<a href="javascript:help_window(\'classhelp?classname=%s&' \
             'properties=%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%(classname,
@@ -1082,6 +1091,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.80  2002/02/21 07:19:08  richard
+# ... and label, width and height control for extra flavour!
+#
 # Revision 1.79  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')">

Roundup Issue Tracker: http://roundup-tracker.org/