Package turbogears :: Package widgets :: Module forms :: Class FieldSet

Class FieldSet

source code

     object --+                    
              |                    
    base.Widget --+                
                  |                
base.CompoundWidget --+            
                      |            
     object --+       |            
              |       |            
    base.Widget --+   |            
                  |   |            
        InputWidget --+            
                      |            
    CompoundInputWidget --+        
                          |        
        FormFieldsContainer --+    
                              |    
         object --+           |    
                  |           |    
        base.Widget --+       |    
                      |       |    
            InputWidget --+   |    
                          |   |    
                  FormField --+    
                              |    
              CompoundFormField --+
                                  |
                                 FieldSet

Instance Methods

Inherited from FormFieldsContainer: display_field_for, file_upload, get_field_by_name, render_field_for, update_params

Inherited from 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 FormField: field_id

Inherited from 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
  template = ...
hash(x)
  params = ["legend"]
  params_doc = {'legend': 'Text to display as the legend for the...
  legend = None
hash(x)

Inherited from CompoundFormField: is_required

Inherited from FormFieldsContainer: disabled_fields, fields, hidden_fields, member_widgets

Inherited from base.CompoundWidget: compound

Inherited from FormField: css_classes, field_class, help_text, label, name

Inherited from InputWidget: convert, validator

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

Properties

Inherited from object: __class__

Class Variable Details

template

hash(x)

Value:
"""
    <fieldset xmlns:py="http://purl.org/kid/ns#"
        class="${field_class}"
        id="${field_id}"
    >
        <legend py:if="legend" py:content="legend" />
        <div py:for="field in hidden_fields"
            py:replace="field.display(value_for(field), **params_for(f\
...

params_doc

Value:
{'legend': 'Text to display as the legend for the fieldset'}