We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ae3dbc commit 7728b14Copy full SHA for 7728b14
roundup/cgi/templating.py
@@ -924,6 +924,17 @@ def field(self, size = 30):
924
value = '"'.join(value.split('"'))
925
return '<input name="%s" value="%s" size="%s">'%(self._formname, value, size)
926
927
+ def __int__(self):
928
+ ''' Return an int of me
929
+ '''
930
+ return int(self._value)
931
+
932
+ def __float__(self):
933
+ ''' Return a float of me
934
935
+ return float(self._value)
936
937
938
class BooleanHTMLProperty(HTMLProperty):
939
def plain(self):
940
''' Render a "plain" representation of the property
0 commit comments