HTML Widgets

class genshi_forms.widgets.Widget([attrs = {}])
render(name, value, attrs)

Generate a Genshi markup stream.

name
The field’s name, which should be used for name HTML attributes.
value
The default data value to render. This might also be text the user entered on a form that failed validation.
attrs
Extra attributes to include in the HTML element, if appropriate to the widget type.
class genshi_forms.widgets.InputCheckbox
class genshi_forms.widgets.InputText([size = None[, max_size = None]])
class genshi_forms.widgets.InputPassword
class genshi_forms.widgets.InputFile
class genshi_forms.widgets.TextArea([rows = 10[, columns = 40]])
class genshi_forms.widgets.Select(choices)