Skip to content

Commit 3d9f313

Browse files
author
Richard Jones
committed
How about that ... date fields have never worked ...
1 parent c0df48d commit 3d9f313

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

roundup/htmltemplate.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.52 2002-01-14 02:20:14 richard Exp $
18+
# $Id: htmltemplate.py,v 1.53 2002-01-14 04:03:32 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -146,7 +146,7 @@ def sortfunc(a, b, cl=linkcl):
146146
if value is None:
147147
value = ''
148148
else:
149-
value = cgi.escape(value)
149+
value = cgi.escape(str(value))
150150
value = '"'.join(value.split('"'))
151151
s = '<input name="%s" value="%s" size="%s">'%(property, value, size)
152152
elif isinstance(propclass, hyperdb.Password):
@@ -889,6 +889,15 @@ def render(self, form):
889889

890890
#
891891
# $Log: not supported by cvs2svn $
892+
# Revision 1.52 2002/01/14 02:20:14 richard
893+
# . changed all config accesses so they access either the instance or the
894+
# config attriubute on the db. This means that all config is obtained from
895+
# instance_config instead of the mish-mash of classes. This will make
896+
# switching to a ConfigParser setup easier too, I hope.
897+
#
898+
# At a minimum, this makes migration a _little_ easier (a lot easier in the
899+
# 0.5.0 switch, I hope!)
900+
#
892901
# Revision 1.51 2002/01/10 10:02:15 grubert
893902
# In do_history: replace "." in date by " " so html wraps more sensible.
894903
# Should this be done in date's string converter ?

0 commit comments

Comments
 (0)