I am not in favor of this because it mixes two different levels of
web2py that should be separate. The reason they should be separate is
that T is thought for static strings not for dynamic strings. You will
run into all kind of issues otherwise.

Anyway can do

db.mytable.myfield.represent=lambda value: T(value)

and it is almost what you want.

Massimo

On May 20, 5:34 pm, "[email protected]" <[email protected]> wrote:
> To anyone who would join me on this:
>
> How hard do you think it would be to make a "translatable" type for
> SQLField, where whatever text you enter will show up in the translator
> section of the app even though it's in a db and not a controller/view
> file? I'm thinking about writing something like this myself and
> submitting it, but I'm relatively new to python.
>
> Any thoughts are appreciated.
>
> -Matt B.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to