[web2py] Re: HTML truncate

2012-09-12 Thread villas
oops yes, there was a typo with the tipo! :) On Tuesday, September 11, 2012 3:33:18 PM UTC+1, Massimo Di Pierro wrote: {{=db.publicaciones.descripcion.represent(tipo_3.descripcion,tipo_3}} I do not think you want the extra =. On Tuesday, 11 September 2012 08:47:00 UTC-5, villas wrote: I

[web2py] Re: HTML truncate

2012-09-12 Thread Pepe Araya
Thanks you both! One more help request: I have a represent related question in this topic https://groups.google.com/d/topic/web2py/9R9iQT_BVyU/discussion please, can you help me to understand what I'm doing wrong? On Tuesday, September 11, 2012 11:33:18 AM UTC-3, Massimo Di Pierro wrote:

[web2py] Re: HTML truncate

2012-09-11 Thread Massimo Di Pierro
What does it mean it does not work? Can you import it? Can you import it from python? On Tuesday, 11 September 2012 00:55:03 UTC-5, Pepe Araya wrote: Hello, I need to truncate a field that contains HTML content. Now i'm using htmltruncate https://github.com/eentzel/htmltruncate.py in a

[web2py] Re: HTML truncate

2012-09-11 Thread Pepe Araya
Hi Massimo, Sorry for my poor explanation. What I don't get is in the view when i call the field value {{=tipo_3.descripcion}} I get the whole text and not the truncated one like in the SQLFORM.grid case. On Tuesday, September 11, 2012 9:32:18 AM UTC-3, Massimo Di Pierro wrote: What

[web2py] Re: HTML truncate

2012-09-11 Thread villas
I end up doing something like this: {{=db.publicaciones.descripcion.represent(=tipo_3.descripcion,tipo_3)}} I hope that helps, but maybe there is a better way? On Tuesday, September 11, 2012 1:48:59 PM UTC+1, Pepe Araya wrote: Hi Massimo, Sorry for my poor explanation. What I don't get

[web2py] Re: HTML truncate

2012-09-11 Thread Massimo Di Pierro
{{=db.publicaciones.descripcion.represent(tipo_3.descripcion,tipo_3}} I do not think you want the extra =. On Tuesday, 11 September 2012 08:47:00 UTC-5, villas wrote: I end up doing something like this: {{=db.publicaciones.descripcion.represent(=tipo_3.descripcion,tipo_3)}} I hope that