Integer number widget.
Let's make sure that zeroes are rendered properly:
>>> from zope.schema import Int >>> field = Int(__name__='foo', title=u'on') >>> widget = IntWidget(field, None) >>> widget.setRenderedValue(0)
>>> 'value="0"' in widget() True
convert_missing_value
(type:
bool)
TruecssClass
(type:
unicode)
u''default
(type:
str)
''displayMaxWidth
(type:
str)
''displayWidth
(type:
int)
10extra
(type:
str)
''style
(type:
str)
''tag
(type:
unicode)
u'input'type
(type:
unicode)
u'text'visible
(type:
bool)
Truehint(...)
label(...)
applyChanges(content)
error()
getInputValue()
hasInput()
See IWidget.hasInput.
Returns True if the submitted request form contains a value for the widget, otherwise returns False.
Some browser widgets may need to implement a more sophisticated test for input. E.g. checkbox values are not supplied in submitted forms when their value is 'off' -- in this case the widget will need to add a hidden element to signal its presence in the form.
hasValidInput()
hidden()
setPrefix(prefix)
setRenderedValue(value)
There are no known subclasses.