Mercurial > p > roundup > code
comparison roundup/cgi/templating.py @ 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 | c074b1024132 |
| children | dd347cd0fa13 |
comparison
equal
deleted
inserted
replaced
| 3336:f2ba6b549680 | 3337:4e6d0cac633a |
|---|---|
| 1508 class IntervalHTMLProperty(HTMLProperty): | 1508 class IntervalHTMLProperty(HTMLProperty): |
| 1509 def __init__(self, client, classname, nodeid, prop, name, value, | 1509 def __init__(self, client, classname, nodeid, prop, name, value, |
| 1510 anonymous=0): | 1510 anonymous=0): |
| 1511 HTMLProperty.__init__(self, client, classname, nodeid, prop, | 1511 HTMLProperty.__init__(self, client, classname, nodeid, prop, |
| 1512 name, value, anonymous) | 1512 name, value, anonymous) |
| 1513 if self._value: | 1513 if self._value and not isinstance(self._value, (str, unicode)): |
| 1514 self._value.setTranslator(self._client.translator) | 1514 self._value.setTranslator(self._client.translator) |
| 1515 | 1515 |
| 1516 def plain(self): | 1516 def plain(self): |
| 1517 ''' Render a "plain" representation of the property | 1517 ''' Render a "plain" representation of the property |
| 1518 ''' | 1518 ''' |
