comparison 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
comparison
equal deleted inserted replaced
3335:e996f3584772 3338:afe094d2daed
1524 class IntervalHTMLProperty(HTMLProperty): 1524 class IntervalHTMLProperty(HTMLProperty):
1525 def __init__(self, client, classname, nodeid, prop, name, value, 1525 def __init__(self, client, classname, nodeid, prop, name, value,
1526 anonymous=0): 1526 anonymous=0):
1527 HTMLProperty.__init__(self, client, classname, nodeid, prop, 1527 HTMLProperty.__init__(self, client, classname, nodeid, prop,
1528 name, value, anonymous) 1528 name, value, anonymous)
1529 if self._value: 1529 if self._value and not isinstance(self._value, (str, unicode)):
1530 self._value.setTranslator(self._client.translator) 1530 self._value.setTranslator(self._client.translator)
1531 1531
1532 def plain(self): 1532 def plain(self):
1533 ''' Render a "plain" representation of the property 1533 ''' Render a "plain" representation of the property
1534 ''' 1534 '''

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