diff roundup/cgi/templating.py @ 2581:4a72b2ded24b maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Mon, 19 Jul 2004 00:46:52 +0000
parents cc7885c427b0
children 291c08916e5e
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon Jul 19 00:38:54 2004 +0000
+++ b/roundup/cgi/templating.py	Mon Jul 19 00:46:52 2004 +0000
@@ -1301,7 +1301,7 @@
         return DateHTMLProperty(self._client, self._classname, self._nodeid,
             self._prop, self._formname, date.Date('.'))
 
-    def field(self, size = 30):
+    def field(self, size=30):
         ''' Render a form edit field for the property
 
             If not editable, just display the value via plain().
@@ -1310,6 +1310,8 @@
 
         if self._value is None:
             value = ''
+        elif type(self._value) is type(''):
+            value = self._value
         else:
             tz = self._db.getUserTimezone()
             value = cgi.escape(str(self._value.local(tz)))

Roundup Issue Tracker: http://roundup-tracker.org/