[Zope3-dev] Re: [Zope3-checkins] CVS: Zope3/src/zope/schema -_bootstrapfields.py:1.19.2.1

Steve Alexander steve@z3u.com
Tue, 22 Jul 2003 18:43:44 +0300


>>I need the flexibility of overriding form values sometimes. Here's an
>>example. I have a list of languages in a "what language do you speak"
>>drop-down widget. I also have a text box to add a new language to
>>that list. What I want is if someone enters some text into the
>>text-box and submits the form, that the language will be added to the
>>list, *and* the new language will be selected.
>>I'd rather do this from my view class than by writing a special widget
>>to do it.
>>I think it is reasonable for my view class to override the request in
>>terms of what data to tell a widget it should present.
> 
> 
> I suspect that EditView will need a few protected methods for this sort
> of thing, but trivial stuff really.

I'm not using EditView. I'm talking about a limitation of widgets.


--
Steve Alexander