Re: [web2py] Re: Is this broken?

2010-12-24 Thread Arun K.Rajeevan
Silly me.
I forgot to convert value into int. (it's in string form '3')


Re: [web2py] Re: Is this broken?

2010-12-24 Thread Arun K.Rajeevan
This is only a part of original form. ;-)

Links appear in code without my knowledge. I copies from browser but new 
groups support rich text so those without using it sees links. else it's 
fine.

List have 251 elements. (it's a list of languages)


Re: [web2py] Re: Is this broken?

2010-12-24 Thread Arun K.Rajeevan
This is only a part of original form. ;-)

Links appear in code without my knowledge. I copies from browser but new 
groups support rich text so those without using it sees links. else it's 
fine.


Re: [web2py] Re: Is this broken?

2010-12-24 Thread Branko Vukelić
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  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"  wrote:
>> See following form
>>
>> 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')
>>
>>  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

stu...@brankovukelic.com
http://www.brankovukelic.com/


[web2py] Re: Is this broken?

2010-12-24 Thread mdipierro
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"  wrote:
> See following form
>
> 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')
>
>  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?