index 0984bc137a2f1e6681e63b577e400e36a89f4fce..ae4f0fa3dd31003560c45abd0559c425caa78146 100644 (file)
value = '"'.join(value.split('"'))
return '<input name="%s" value="%s" size="%s">'%(self._formname, value, size)
+ def __int__(self):
+ ''' Return an int of me
+ '''
+ return int(self._value)
+
+ def __float__(self):
+ ''' Return a float of me
+ '''
+ return float(self._value)
+
+
class BooleanHTMLProperty(HTMLProperty):
def plain(self):
''' Render a "plain" representation of the property