diff roundup/cgi/templating.py @ 3338:afe094d2daed

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 c8cdfa100a9b
children 201dbcf63a30
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
@@ -1526,7 +1526,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/