|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Template engine. |
@@ -146,7 +146,7 @@ def sortfunc(a, b, cl=linkcl): |
146 | 146 | if value is None: |
147 | 147 | value = '' |
148 | 148 | else: |
149 | | - value = cgi.escape(value) |
| 149 | + value = cgi.escape(str(value)) |
150 | 150 | value = '"'.join(value.split('"')) |
151 | 151 | s = '<input name="%s" value="%s" size="%s">'%(property, value, size) |
152 | 152 | elif isinstance(propclass, hyperdb.Password): |
@@ -889,6 +889,15 @@ def render(self, form): |
889 | 889 |
|
890 | 890 | # |
891 | 891 | # $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 | +# |
892 | 901 | # Revision 1.51 2002/01/10 10:02:15 grubert |
893 | 902 | # In do_history: replace "." in date by " " so html wraps more sensible. |
894 | 903 | # Should this be done in date's string converter ? |
|
0 commit comments