search_form = FORM(LABEL('Search a word: ', _for='word',
_id='word_label', _name='word_label'),
                    INPUT(_id='word', _name='word', requires=IS_NOT_EMPTY()),
                    SELECT(_name='languages', _id='languages',
requires=IS_IN_DB(db,'languages.id'), *options_added),
                    INPUT(_type="submit",_value="SEARCH"),
                     _name='search_form')

That better? Looks like a book example, though.

On Fri, Dec 24, 2010 at 7:35 PM, mdipierro <[email protected]> wrote:
> Nothing changed in this respect. Probably the values of the indices [2]
> [3] is wrong.
> I will try if you post your code without links in it. ;-)
>
>
> On Dec 24, 11:21 am, "Arun K.Rajeevan" <[email protected]> wrote:
>> See following form
>>
>> search_form = FORM <http://127.0.0.1:8000/examples/global/vars/FORM>(LABEL 
>> <http://127.0.0.1:8000/examples/global/vars/LABEL>('Search a word: ', 
>> _for='word', _id='word_label', _name='word_label'),
>>                     INPUT 
>> <http://127.0.0.1:8000/examples/global/vars/INPUT>(_id='word', _name='word', 
>> requires=IS_NOT_EMPTY 
>> <http://127.0.0.1:8000/examples/global/vars/IS_NOT_EMPTY>()),
>>                     SELECT 
>> <http://127.0.0.1:8000/examples/global/vars/SELECT>(_name='languages', 
>> _id='languages', requires=IS_IN_DB 
>> <http://127.0.0.1:8000/examples/global/vars/IS_IN_DB>(db,'languages.id'), 
>> *options_added),
>>                     INPUT 
>> <http://127.0.0.1:8000/examples/global/vars/INPUT>(_type="submit",_value="SEARCH"),
>>                      _name='search_form')
>>
>>  I used to do something like search_form[2][3]['_selected']=True
>>
>> But now with 1.91.x this shows an error (Assignment with NoneType or 
>> something similar)
>>
>> What happened?
>



-- 
Branko Vukelic

[email protected]
http://www.brankovukelic.com/

Reply via email to