1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: htmltemplate.py,v 1.86 2002-04-03 05:54:31 richard Exp $
18+ # $Id: htmltemplate.py,v 1.87 2002-04-03 06:12:46 richard Exp $
1919
2020__doc__ = """
2121Template engine.
@@ -354,7 +354,7 @@ def do_link(self, property=None, is_download=0, showid=0):
354354 linkname = propclass .classname
355355 linkcl = self .db .classes [linkname ]
356356 k = linkcl .labelprop ()
357- linkvalue = cgi .escape (linkcl .get (value , k ))
357+ linkvalue = cgi .escape (str ( linkcl .get (value , k ) ))
358358 if showid :
359359 label = value
360360 title = ' title="%s"' % linkvalue
@@ -373,7 +373,7 @@ def do_link(self, property=None, is_download=0, showid=0):
373373 k = linkcl .labelprop ()
374374 l = []
375375 for value in value :
376- linkvalue = cgi .escape (linkcl .get (value , k ))
376+ linkvalue = cgi .escape (str ( linkcl .get (value , k ) ))
377377 if showid :
378378 label = value
379379 title = ' title="%s"' % linkvalue
@@ -478,7 +478,7 @@ def do_checklist(self, property, **args):
478478 l = []
479479 k = linkcl .labelprop ()
480480 for optionid in linkcl .list ():
481- option = cgi .escape (linkcl .get (optionid , k ))
481+ option = cgi .escape (str ( linkcl .get (optionid , k ) ))
482482 if optionid in value or option in value :
483483 checked = 'checked'
484484 else :
@@ -1128,6 +1128,14 @@ def render(self, form):
11281128
11291129#
11301130# $Log: not supported by cvs2svn $
1131+ # Revision 1.86 2002/04/03 05:54:31 richard
1132+ # Fixed serialisation problem by moving the serialisation step out of the
1133+ # hyperdb.Class (get, set) into the hyperdb.Database.
1134+ #
1135+ # Also fixed htmltemplate after the showid changes I made yesterday.
1136+ #
1137+ # Unit tests for all of the above written.
1138+ #
11311139# Revision 1.85 2002/04/02 01:40:58 richard
11321140# . link() htmltemplate function now has a "showid" option for links and
11331141# multilinks. When true, it only displays the linked node id as the anchor
0 commit comments