[web2py] Re: Strange radio button behavior

2010-08-11 Thread Alastair Medford
Just touching base to see if anyone has had a chance to look into this yet. On Jul 29, 12:59 am, mdipierro wrote: > will look into this asap. > > On Jul 29, 1:54 am, Alastair Medford > wrote: > > > After wandering around in the source, I think I've found the culprit > > code. > > In html.py -> I

[web2py] Re: Strange radio button behavior

2010-07-28 Thread mdipierro
will look into this asap. On Jul 29, 1:54 am, Alastair Medford wrote: > After wandering around in the source, I think I've found the culprit > code. > In html.py -> Input class -> _post_processing function, there's the > following condition: > > elif t == 'radio': >     if str(self['value']) == s

[web2py] Re: Strange radio button behavior

2010-07-28 Thread Alastair Medford
After wandering around in the source, I think I've found the culprit code. In html.py -> Input class -> _post_processing function, there's the following condition: elif t == 'radio': if str(self['value']) == str(self['_value']): self['_checked'] = 'checked' else: self['_ch

[web2py] Re: Strange radio button behavior

2010-07-28 Thread Alastair Medford
On Jul 28, 6:26 am, René wrote: > I've experienced the same behaviour, and I noticed something that > probably is the solution. I have a website that provides several > quizes and questionaires, and all radio buttons created using the > INPUT() method have the "checked" attribute set by default.

[web2py] Re: Strange radio button behavior

2010-07-28 Thread René
> desired. But after the form submits, page refreshes etc, the lastradiobuttons > in the list are selected. IE, rather than defaulting to > the first element selected as it did the first time, it defaults to > the last. As this form will be submitted many times in a row, and the > first option is

Re: [web2py] Re: Strange radio button behavior

2010-07-28 Thread Mathieu Clabaut
Thanks ! On Wed, Jul 28, 2010 at 06:46, mdipierro wrote: > in trunk > > On Jul 27, 4:37 am, _po wrote: > > Hi Massimo, > > I sent you this last week : > > I hope the patch is still up to date... > > > > With this patch, radio widget can use 'cols' attribute ; As previously > > done for > > chec

[web2py] Re: Strange radio button behavior

2010-07-27 Thread mdipierro
in trunk On Jul 27, 4:37 am, _po wrote: > Hi Massimo, > I sent you this last week : > I hope the patch is still up to date... > > With this patch, radio widget can use 'cols' attribute ; As previously > done for > checkboxes. > > Grettings, > PO. > > diff -r dcd13ab59569 gluon/sqlhtml.py > --- a/

[web2py] Re: Strange radio button behavior

2010-07-27 Thread Alastair Medford
So I've investigated further and this behavior happens with the built- in vertical widget as well. I've browsed the source a bit but I can't find why this would be happening. Any ideas?

[web2py] Re: Strange radio button behavior

2010-07-27 Thread mdipierro
email please, indentation is messed up. Thanks. On Jul 27, 4:37 am, _po wrote: > Hi Massimo, > I sent you this last week : > I hope the patch is still up to date... > > With this patch, radio widget can use 'cols' attribute ; As previously > done for > checkboxes. > > Grettings, > PO. > > diff -r

[web2py] Re: Strange radio button behavior

2010-07-27 Thread _po
Hi Massimo, I sent you this last week : I hope the patch is still up to date... With this patch, radio widget can use 'cols' attribute ; As previously done for checkboxes. Grettings, PO. diff -r dcd13ab59569 gluon/sqlhtml.py --- a/gluon/sqlhtml.py Tue Jul 20 02:43:46 2010 -0500 +++ b/gluon/sql

[web2py] Re: Strange radio button behavior

2010-07-27 Thread mdipierro
I thought it was included unless I got confused with a different patch. Please ask him to resend. On Jul 27, 3:21 am, Mathieu Clabaut wrote: > Hi Massimo, > >  A colleague of mine tell me he sent you a patch to include a horizontal > radio buttons in gluon (similar to the existing horizontal chec