Package turbogears :: Package widgets :: Module forms :: Class TableForm

Class TableForm

source code

     object --+                    
              |                    
    base.Widget --+                
                  |                
base.CompoundWidget --+            
                      |            
     object --+       |            
              |       |            
    base.Widget --+   |            
                  |   |            
        InputWidget --+            
                      |            
    CompoundInputWidget --+        
                          |        
        FormFieldsContainer --+    
                              |    
                           Form --+
                                  |
                                 TableForm
Known Subclasses:

Form with simple table layout.

Nested Classes
  template_c

Inherited from base.Widget: __metaclass__

Instance Methods

Inherited from Form: update_params, validate

Inherited from FormFieldsContainer: display_field_for, get_field_by_name, render_field_for

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

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

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

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

Class Variables
  template = '\n <form xmlns:py="http://purl.org/kid/ns#"\n ...
hash(x)
  params = ['table_attrs', 'action', 'method', 'form_attrs', 'us...
  params_doc = {'action': 'Url to POST/GET the form data', 'conv...
  table_attrs = {}

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

Inherited from FormFieldsContainer: disabled_fields, fields, hidden_fields

Inherited from base.CompoundWidget: compound

Inherited from InputWidget: convert, validator

Inherited from base.Widget: css, default, javascript

Properties

Inherited from Form: errors

Inherited from FormFieldsContainer: file_upload

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

Inherited from base.Widget: is_named

Inherited from object: __class__

Class Variable Details

template

hash(x)

Value:
'''
    <form xmlns:py="http://purl.org/kid/ns#"
        name="${use_name and name or None}"
        id="${not use_name and name or None}"
        action="${action}"
        method="${method}"
        class="tableform"
        py:attrs="form_attrs"
...

params

Value:
['table_attrs',
 'action',
 'method',
 'form_attrs',
 'use_name',
 'submit_text',
 'disabled_fields',
 'convert']

params_doc

Value:
{'action': 'Url to POST/GET the form data',
 'convert': 'Should the value be coerced by the validator at display?'\
,
 'disabled_fields': 'List of names of the fields we want to disable',
 'form_attrs': 'Extra (X)HTML attributes for the form tag',
 'method': 'HTTP request method',
 'submit_text': 'Text for the submit button',
 'table_attrs': 'Extra (X)HTML attributes for the Table tag',
...