From: richard Date: Thu, 21 Feb 2002 07:21:38 +0000 (+0000) Subject: docco X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ced9498c6352747af361bd8a7a586c29159f7462;p=roundup.git docco git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@651 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index cef2a69..9e0a011 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -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 @@ class TemplateFunctions: 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 '(%s)'%(classname, @@ -1082,6 +1091,9 @@ class NewItemTemplate(TemplateFunctions): # # $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