[web2py] Re: Proposal to add 'extend' to DIV

2016-10-11 Thread Massimo Di Pierro
I see the value in this. It calls _fixup after concatenating. Can you submit a PR? On Wednesday, 5 October 2016 14:51:59 UTC-5, Joe Barnhart wrote: > > One Python helper I find enormously useful is "extend()" as applied to > list objects. Extend differs from append in that it adds the items of

[web2py] Re: Proposal to add 'extend' to DIV

2016-10-06 Thread Anthony
To clarify, web2py HTML helpers act like lists with respect to their components (in fact, div.components *is* a list). The helpers already have a .append method to match the list.append method, so I suppose it makes sense for it to have a matching .extend method as well. Note, you can do

[web2py] Re: Proposal to add 'extend' to DIV

2016-10-05 Thread Joe Barnhart
Yep. That is essentially what "extend" does. It's a standard method in the Python list class. Since DIV has a lot of "list" behavior I think it would be nice to "extend" it to have extend() as well! -- Joe On Wednesday, October 5, 2016 at 3:19:52 PM UTC-7, Dave S wrote: > > > > On

[web2py] Re: Proposal to add 'extend' to DIV

2016-10-05 Thread Dave S
On Wednesday, October 5, 2016 at 12:51:59 PM UTC-7, Joe Barnhart wrote: > > One Python helper I find enormously useful is "extend()" as applied to > list objects. Extend differs from append in that it adds the items of the > list provided at the same level as the current list items, thereby