changeset 3337:4e6d0cac633a maint-0.8

fix handling of invalid interval input (similar to [SF#1102165] reported for date input)
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Mon, 23 May 2005 14:10:37 +0000
parents f2ba6b549680
children 9dd378894afc
files roundup/cgi/templating.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon May 23 13:33:35 2005 +0000
+++ b/roundup/cgi/templating.py	Mon May 23 14:10:37 2005 +0000
@@ -1510,7 +1510,7 @@
             anonymous=0):
         HTMLProperty.__init__(self, client, classname, nodeid, prop,
             name, value, anonymous)
-        if self._value:
+        if self._value and not isinstance(self._value, (str, unicode)):
             self._value.setTranslator(self._client.translator)
 
     def plain(self):

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