ok this kind of works:

db.foto.represent=lambda foto: TABLE(A(foto.title,_href=t2.action
('wiki/edit',foto.id)),
A(IMG(_width=200,_src=URL(r=request,f='download',args=[foto.image])),
_href=t2.action('wiki/display',foto.id)))

and i had to create a display page, then i could click on it

display page has:

{{=self.display(db.foto)}}


but is there a way to do a t2.display in a lambda??

-wj

On Dec 11, 9:26 pm, "Wes James" <compte...@gmail.com> wrote:
> How do I do a lambda to do like the puppy poppup - something like this:
>
> db.foto.represent=lambda foto:
> TABLE(A(foto.title,_href=t2.action('wiki/edit',foto.id)),
> A(IMG(_width=200,_src=URL(r=request,f='download',args=[foto.image])),
> _href=t2.display(????))
>
> thx,
>
> -wj
--~--~---------~--~----~------------~-------~--~----~
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