summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 104df62)
raw | patch | inline | side by side (parent: 104df62)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 21 Feb 2002 07:21:38 +0000 (07:21 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 21 Feb 2002 07:21:38 +0000 (07:21 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@651 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/htmltemplate.py | patch | blob | history |
index cef2a6967bb23014480b4c58ba44bcf02010605f..9e0a0114470377f23495453f480f4d7480146ca1 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# 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.
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,
#
# $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')">