From 2d1ac419bd2689a166e2071094745bc8eb7db078 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 14 Jan 2002 04:03:32 +0000 Subject: [PATCH] How about that ... date fields have never worked ... git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@537 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/htmltemplate.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index d683811..ed00a0e 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.52 2002-01-14 02:20:14 richard Exp $ +# $Id: htmltemplate.py,v 1.53 2002-01-14 04:03:32 richard Exp $ __doc__ = """ Template engine. @@ -146,7 +146,7 @@ class TemplateFunctions: if value is None: value = '' else: - value = cgi.escape(value) + value = cgi.escape(str(value)) value = '"'.join(value.split('"')) s = ''%(property, value, size) elif isinstance(propclass, hyperdb.Password): @@ -889,6 +889,15 @@ class NewItemTemplate(TemplateFunctions): # # $Log: not supported by cvs2svn $ +# Revision 1.52 2002/01/14 02:20:14 richard +# . changed all config accesses so they access either the instance or the +# config attriubute on the db. This means that all config is obtained from +# instance_config instead of the mish-mash of classes. This will make +# switching to a ConfigParser setup easier too, I hope. +# +# At a minimum, this makes migration a _little_ easier (a lot easier in the +# 0.5.0 switch, I hope!) +# # Revision 1.51 2002/01/10 10:02:15 grubert # In do_history: replace "." in date by " " so html wraps more sensible. # Should this be done in date's string converter ? -- 2.30.2