Sorry, wasn't thinking -- you could do:
{{=SPAN(T('Email : '), XML(', '.join([A(email, _title=T('Send Email'),_target
='_blank',
_href='mailto:%s' % email).xml() for email in row.email])), _id=
'email_%s' % i)}}
Anthony
On Wednesday, April 17, 2013 5:12:26 PM UTC-4, 黄祥 wrote:
>
> thank you so much for your hint anthony, it seems must be string type,
> when i try to use your hints it return an error
> *not work*
> {{=SPAN(T('Email : '), ', '.join([A(email, _title=T('Send Email'),
> _target='_blank',
> _href='mailto:%s' % email) for email in row.email]),
> _id='email_%s' % i)}}
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
>
> Traceback (most recent call last):
> File "/host/Download/web2py/gluon/restricted.py", line 212, in restricted
> exec ccode in environment
> File
> "/host/Download/web2py/applications/stifix/views/default/contact_us.html",
> line 92, in <module>
> TypeError: sequence item 0: expected string, A found
>
>
> *work but the output result not expected (no link A href)*
> {{=SPAN(T('Email : '), ', '.join([str(email) for email in row.email]),
> _id='email_%s' % i)}}
>
> any idea how to accomplished it?
> thank you very much in advance
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.