Package turbogears :: Package widgets :: Module big_widgets :: Class AutoCompleteField

Class AutoCompleteField

source code

       object --+                    
                |                    
      base.Widget --+                
                    |                
  base.CompoundWidget --+            
                        |            
       object --+       |            
                |       |            
      base.Widget --+   |            
                    |   |            
    forms.InputWidget --+            
                        |            
forms.CompoundInputWidget --+        
                            |        
    forms.FormFieldsContainer --+    
                                |    
           object --+           |    
                    |           |    
          base.Widget --+       |    
                        |       |    
        forms.InputWidget --+   |    
                            |   |    
              forms.FormField --+    
                                |    
          forms.CompoundFormField --+
                                    |
                   object --+       |
                            |       |
                  base.Widget --+   |
                                |   |
                     AutoComplete --+
                                    |
                                   AutoCompleteField

Text field with auto complete functionality and hidden key field.

Instance Methods

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

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.FormField: field_id

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
  template = ...
hash(x)
  member_widgets = ["text_field", "hidden_field"]
  text_field = TextField(name= "text")
  hidden_field = HiddenField(name= "hidden")

Inherited from forms.CompoundFormField: is_required

Inherited from forms.FormFieldsContainer: disabled_fields, fields, hidden_fields, params

Inherited from base.CompoundWidget: compound

Inherited from forms.FormField: css_classes, field_class, help_text, label, name, params_doc

Inherited from forms.InputWidget: convert, validator

Inherited from AutoComplete: attrs, complete_delay, css, javascript, min_chars, only_suggest, result_name, search_controller, search_param, show_spinner, take_focus

Inherited from base.Widget: __metaclass__, default, engine_name

Properties

Inherited from object: __class__

Class Variable Details

template

hash(x)

Value:
"""
    <span xmlns:py="http://purl.org/kid/ns#" id="${field_id}" class="$\
{field_class}">
    <script type="text/javascript">
        AutoCompleteManager${field_id} = new AutoCompleteManager('${fi\
eld_id}',
        '${text_field.field_id}', '${hidden_field.field_id}',
        '${search_controller}', '${search_param}', '${result_name}',${\
...