Package turbogears :: Package widgets :: Module forms :: Class MultipleSelectField

Class MultipleSelectField

source code

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

Nested Classes

Inherited from base.Widget: __metaclass__

Instance Methods

Inherited from SelectionField: __init__, update_params

Inherited from InputWidget: adjust_value, display, render

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

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

Class Variables
  template = '\n <select xmlns:py="http://genshi.edgewall.org...
hash(x)
  params = ['size', 'attrs', 'options', 'field_class', 'css_clas...
  params_doc = {'convert': 'Should the value be coerced by the v...
  attrs = {}
  size = 5
  engine_name = 'genshi'
hash(x)
  template_c = <MarkupTemplate "None">

Inherited from SelectionField: convert, no_input_if_empty, options

Inherited from FormField: css_classes, field_class, help_text, label

Inherited from InputWidget: validator

Inherited from base.Widget: css, default, javascript

Properties

Inherited from FormField: field_id, is_required, name

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:
'''
    <select xmlns:py="http://genshi.edgewall.org/"
        multiple="multiple"
        size="${size}"
        name="${name}"
        class="${field_class}"
        id="${field_id}"
        py:attrs="attrs"
...

params

Value:
['size', 'attrs', 'options', 'field_class', 'css_classes', 'convert']

params_doc

Value:
{'convert': 'Should the value be coerced by the validator at display?'\
,
 'css_classes': 'List of extra CSS classes for the field',
 'field_class': 'CSS class for the field',
 'options': 'A list of tuples with the options for the select field',
 'size': 'Number of options to show without scrolling'}