[jToolkit-cvs] jToolkit/widgets widgets.py,1.13,1.14
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-10 08:15:14
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15855 Modified Files: widgets.py Log Message: Added capability to put extra widgets into a page header Index: widgets.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/widgets.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** widgets.py 10 Feb 2004 08:06:13 -0000 1.13 --- widgets.py 10 Feb 2004 08:11:59 -0000 1.14 *************** *** 225,230 **** class Page(ContentWidget): ! def __init__(self, title="", contents=[], newattribs={}, script=""): self.title = title self.script = PlainContents(script) ContentWidget.__init__(self, None, contents, newattribs) --- 225,231 ---- class Page(ContentWidget): ! def __init__(self, title="", contents=[], newattribs={}, script="", headerwidgets=[]): self.title = title + self.headerwidgets = headerwidgets self.script = PlainContents(script) ContentWidget.__init__(self, None, contents, newattribs) *************** *** 272,275 **** --- 273,278 ---- <BASE href="%s" target="%s">""" % (base, target) # any script required + for widget in self.headerwidgets: + result += widget.gethtml() result += self.script.gethtml() # finished the head |