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
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
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
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
4 matches
Mail list logo