in python attributes with a - in it are not allowed.
you can use the dict notation
A(....., **{'_data-toggle': 'whatever'})
Il giorno lunedì 12 novembre 2012 09:16:19 UTC+1, software.ted ha scritto:
>
> Hi,
>
> How does web2py handle custom defined attributes, am having an error
> with "_data-toggle='modal'" in the controller or how do I get round
> this problem:
>
> link = [lambda row: A('Edit',
> _class='btw',_data-toggle="modal",_href=URL('administration','department.load#myModal'))]
>
>
>
> Kind regards,
> --
> .......................................................................................
>
>
> Teddy Lubasi Nyambe
> Opensource Zambia
> Lusaka, ZAMBIA
>
> Cell: +260 97 7760473
> website: http://www.opensource.org.zm
>
> ~/
> Human Knowledge belongs to the world! - AntiTrust
>
> Man is a tool-using animal. Without tools he is nothing, with tools he
> is all - Thomas Carlyle 1795-1881
>
> /~
>
--