try something like this...
db.dog.owner.display=lambda x: ', '.join([db(db.person.uuid=id).select
()[0].name for id in x[1:-1].split('|')])
Massimo
On Dec 30, 6:59 pm, Fran <[email protected]> wrote:
> On Dec 30, 11:37 pm, mdipierro <[email protected]> wrote:
>
> > New in trunk. Please give this a try:
>
> Another thing which doesn't work, but would be good to have possible
> is this kind of thing:
> db.dog.owner.display=lambda id: (id and [db(db.owner.id==id).select()
> [0].name] or ["None"])[0]
>
> i.e. be able to display the name in t2.display()
>
> (Of course, I want this working with uuids instead of ids too...as it
> does in other areas)
>
> Many thanks,
> Fran.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---