summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 642903a)
raw | patch | inline | side by side (parent: 642903a)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 3 Apr 2002 06:12:46 +0000 (06:12 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 3 Apr 2002 06:12:46 +0000 (06:12 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@692 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/htmltemplate.py | patch | blob | history |
index 03553280b4ba90916432cd3354231f8338ee29cd..5fd46f59bba624c81818c16c6ae909f84af4327c 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.86 2002-04-03 05:54:31 richard Exp $
+# $Id: htmltemplate.py,v 1.87 2002-04-03 06:12:46 richard Exp $
__doc__ = """
Template engine.
linkname = propclass.classname
linkcl = self.db.classes[linkname]
k = linkcl.labelprop()
- linkvalue = cgi.escape(linkcl.get(value, k))
+ linkvalue = cgi.escape(str(linkcl.get(value, k)))
if showid:
label = value
title = ' title="%s"'%linkvalue
k = linkcl.labelprop()
l = []
for value in value:
- linkvalue = cgi.escape(linkcl.get(value, k))
+ linkvalue = cgi.escape(str(linkcl.get(value, k)))
if showid:
label = value
title = ' title="%s"'%linkvalue
l = []
k = linkcl.labelprop()
for optionid in linkcl.list():
- option = cgi.escape(linkcl.get(optionid, k))
+ option = cgi.escape(str(linkcl.get(optionid, k)))
if optionid in value or option in value:
checked = 'checked'
else:
#
# $Log: not supported by cvs2svn $
+# Revision 1.86 2002/04/03 05:54:31 richard
+# Fixed serialisation problem by moving the serialisation step out of the
+# hyperdb.Class (get, set) into the hyperdb.Database.
+#
+# Also fixed htmltemplate after the showid changes I made yesterday.
+#
+# Unit tests for all of the above written.
+#
# Revision 1.85 2002/04/02 01:40:58 richard
# . link() htmltemplate function now has a "showid" option for links and
# multilinks. When true, it only displays the linked node id as the anchor