Home | Trees | Indices | Help |
|
---|
|
object --+ | base.Widget --+ | InputWidget --+ | FormField
An input widget that can be included inside a Form or Fieldset. It accepts the following parameters (besides those listed at params): label The label text that the container form/fieldset will generate for the widget. If empty, the capitalized name will be used. help_text The help text that the container form/fieldset will generate for the widget.
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Class Variables | |
label = None hash(x) |
|
help_text = None hash(x) |
|
params =
|
|
params_doc =
|
|
field_class = None
|
|
css_classes = []
|
|
Inherited from Inherited from |
Properties | |
name | |
is_required | |
field_id | |
Inherited from Inherited from Inherited from |
Method Details |
Initialize an input widget. It accepts the following parameters (besides those listed at params): name: Name of the input element. Will be the name of the variable the widget's input will be available at when submitted. validator: Formencode validator that will validate and coerce the input this widget generates.
|
Update the template parameters. This method will have the last chance to update the variables sent to the template for the specific request. All parameters listed at class attribute 'params' will be available at the 'params' dict this method receives. *Must* call super(MyWidget, self).update_params(params) cooperatively, unless, of course, your know what you're doing. Preferably this should be done before any actual work is done in the method.
|
Class Variable Details |
params_doc
|
Property Details |
is_required
|
field_id
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 17:20:02 2019 | http://epydoc.sourceforge.net |