On Jan 28, 7:51 am, Julius Minka <j...@minka.sk> wrote:
> can I somehow change the output of t2.display?
>
> I need 2 things:
> 1. to format a date field

My suggestion is do not use the T2 layout.html. Use your own. In this
case you can change datetime format using internationalization via the
languages tab.

> 2. to change a reference to an other table to the corresponding value
> from that other table

try this in the model

db.table.represent=lambda row: H2(row.id)

>
> quick view at t2 source reveals, that t2.display returns
> DIV(TABLE(*items),_class='t2-display')
>
> that is my issue - how to change things inside it?
> or is there any other way to customize it?
>
> julius minka
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to