Package turbogears :: Package widgets :: Module forms :: Class CheckBoxList

Class CheckBoxList

source code

 object --+                
          |                
base.Widget --+            
              |            
    InputWidget --+        
                  |        
          FormField --+    
                      |    
         SelectionField --+
                          |
                         CheckBoxList

Instance Methods

Inherited from SelectionField: __init__, update_params

Inherited from FormField: field_id, is_required

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

Inherited from base.Widget: __call__, __repr__, __setattr__, is_named, render, retrieve_css, retrieve_javascript

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

Class Variables
  template = ...
hash(x)
  params = ["list_attrs"]
  params_doc = {'list_attrs': 'Extra (X)HTML attributes for the ...
  list_attrs = {}

Inherited from SelectionField: convert, no_input_if_empty, options

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

Inherited from InputWidget: validator

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

Properties

Inherited from object: __class__

Class Variable Details

template

hash(x)

Value:
"""
    <ul xmlns:py="http://purl.org/kid/ns#"
        class="${field_class}"
        id="${field_id}"
        py:attrs="list_attrs"
    >
        <li py:for="value, desc, attrs in options">
            <input type="checkbox"
...

params_doc

Value:
{'list_attrs': 'Extra (X)HTML attributes for the ul tag'}