yep, html helpers aren't properly "strings", so they can't be joined with a 
simple ','.join()
However, you can do it with the CAT (from conCAT)....

try 

SPAN(T('Email'), CAT([A(email) for a in emails]))

On Wednesday, April 17, 2013 11:12:26 PM UTC+2, 黄祥 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.


Reply via email to