Home | Trees | Indices | Help |
|
---|
|
object --+ | base.Widget --+ | InputWidget
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
validator = None hash(x) |
|
params =
|
|
params_doc =
|
|
convert = True
|
|
Inherited from |
Properties | |
path | |
name_path | |
is_validated | |
fq_name | |
error | |
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.
|
Adjust the value sent to the template on display.
|
Display the widget in a Genshi or Kid template. Returns a Genshi Markup stream or an ElementTree node instance, depending on the template in which the widget shall be displayed. If you need serialized output in a string, call 'render' instead. Probably you will not need to override or extend if inheriting from Widget. @params: value : The value to display in the widget. **params: Extra parameters specific to the widget. All keyword params supplied will pass through the update_params method which will have a last chance to modify them before reaching the template.
|
Exactly the same as display() but return serialized output instead. Useful for debugging or to display the widget in a template other than Genshi or Kid, like Cheetah, Mako, Nevow Stan, ...
|
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 |
path
|
name_path
|
is_validated
|
fq_name
|
error
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 17:20:02 2019 | http://epydoc.sourceforge.net |