Package turbogears :: Package widgets :: Module forms :: Class FormFieldsContainer
[hide private]

Class FormFieldsContainer

source code


A container for FormFields.

Has two member_widgets lists:

It provides the template with 3 useful functions:

Nested Classes [hide private]

Inherited from base.Widget: __metaclass__

Instance Methods [hide private]
 
_get_file_upload(self) source code
 
get_field_by_name(self, name, default=None) source code
 
display_field_for(self, *args, **kw) source code
 
render_field_for(self, *args, **kw) source code
 
_field_for(self, item)
This function should *only* be used inside a FormFieldsContainer template, really, else the path acrobatics will lead to unexpected results.
source code
 
update_params(self, d)
This method will have the last chance to update the variables sent to the template for the specific request.
source code

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, update_data

Inherited from base.Widget (private): _get_is_named

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

Class Variables [hide private]
  member_widgets = ['fields', 'hidden_fields']
  fields = []
  hidden_fields = []
  params = ['disabled_fields', 'convert']
  disabled_fields = set()
  _param_disabled_fields = set([])
  template_vars = ['disabled_fields', 'convert']

Inherited from CompoundInputWidget: params_doc

Inherited from base.CompoundWidget: compound

Inherited from InputWidget: convert, validator

Inherited from InputWidget (private): _param_convert

Inherited from base.Widget: css, default, javascript, name, template

Inherited from base.Widget (private): _locked

Properties [hide private]
  file_upload

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

Inherited from base.Widget: is_named

Inherited from object: __class__

Method Details [hide private]

update_params(self, d)

source code 

This method will have the last chance to update the variables sent to the template for the specific request. All parameters listed at class attribute 'params' will be available at the 'params' dict this method receives.

*Must* call super(MyWidget, self).update_params(params) cooperatively, unless, of course, your know what you're doing. Preferably this should be done before any actual work is done in the method.

Overrides: base.Widget.update_params
(inherited documentation)

Property Details [hide private]

file_upload

Get Method:
_get_file_upload(self)