Changeset 2843

Show
Ignore:
Timestamp:
04/06/07 07:33:05 (2 years ago)
Author:
alberto
Message:

Applied a modified version of #1314. Thanks rick446

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/CHANGELOG.txt

    r2841 r2843  
    2222*Fixes* 
    2323 
     24* SelectionField now properly renders complex values. #1314 by rick446 
    2425* using base64.decodestring in visitor.py for 2.3 compatibility. #1279 by pnfisher. 
    2526* Config file in quickstarted app now has config option to load identity classes. Thanks to Felix 
  • branches/1.0/turbogears/widgets/forms.py

    r2784 r2843  
    906906                if self._is_option_selected(option[0], d['value']): 
    907907                        option_attrs[self._selected_verb] = self._selected_verb 
    908                 optlist[i] = (option[0], option[1], option_attrs) 
     908                if self._multiple_selection: 
     909                    optlist[i] = (self.validator.from_python(option[0])[0], option[1], option_attrs) 
     910                else: 
     911                    optlist[i] = (self.validator.from_python(option[0]), option[1], option_attrs) 
    909912            options.extend(optlist) 
    910913            if group: