you can put the attribution outside the loop, this will always be the same.
{{represent =* db.postulaciones.estado_postulacion.represent*}} {{for postulacion in lista_postulaciones:}} <tr> <td>{{=postulacion.postulaciones.id}}</td> <td>{{=postulacion.postulaciones.fecha_postulacion}}</td> <td>{{=represent(* postulacion.postulaciones.estado_postulacion*)}}</td> On Wednesday, August 31, 2011, Pepe Araya wrote: > In that way it not work, but I tried this: > > {{for postulacion in lista_postulaciones:}} > {{represent =*db.postulaciones.estado_postulacion.represent > *}} > <tr> > <td>{{=postulacion.postulaciones.id}}</td> > > <td>{{=postulacion.postulaciones.fecha_postulacion}}</td> > <td>{{=represent(* > postulacion.postulaciones.estado_postulacion*)}}</td> > > and it works :) > > Thanks a lot! > > ps: is this the right way or the best way to do it? > -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]