Package turbogears :: Package widgets :: Module big_widgets :: Class RemoteForm

Class RemoteForm

source code

                       object --+        
                                |        
                      base.Widget --+    
                                    |    
                              rpc.RPC --+
                                        |
       object --+                       |
                |                       |
      base.Widget --+                   |
                    |                   |
  base.CompoundWidget --+               |
                        |               |
       object --+       |               |
                |       |               |
      base.Widget --+   |               |
                    |   |               |
    forms.InputWidget --+               |
                        |               |
forms.CompoundInputWidget --+           |
                            |           |
    forms.FormFieldsContainer --+       |
                                |       |
                       forms.Form --+   |
                                    |   |
                      forms.TableForm --+
                                        |
                                       RemoteForm

AJAX table form.

A TableForm that submits the data asynchronously and loads the resulting HTML into a DOM object

Instance Methods
 
update_params(self, d)
Update the template parameters.
source code

Inherited from rpc.RPC: get_options

Inherited from forms.Form: errors, validate

Inherited from forms.FormFieldsContainer: display_field_for, file_upload, get_field_by_name, render_field_for

Inherited from forms.CompoundInputWidget: adjust_value, dictify_value, error_for, params_for, value_for

Inherited from base.CompoundWidget: __init__, display, iter_member_widgets, render, retrieve_css, retrieve_javascript

Inherited from forms.InputWidget: error, fq_name, is_validated, name_path, path

Inherited from base.Widget: __call__, __repr__, __setattr__, is_named

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from rpc.RPC: javascript, params

Inherited from forms.TableForm: params_doc, table_attrs, template

Inherited from forms.Form: action, form, form_attrs, member_widgets, method, name, submit, submit_text, use_name

Inherited from forms.FormFieldsContainer: disabled_fields, fields, hidden_fields

Inherited from base.CompoundWidget: compound

Inherited from forms.InputWidget: convert, validator

Inherited from base.Widget: __metaclass__, css, default, engine_name

Properties

Inherited from object: __class__

Method Details

update_params(self, d)

source code 

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.

Overrides: base.Widget.update_params
(inherited documentation)