On Dec 27, 1:20 pm, Fran <[email protected]> wrote:
> Fixed it :)

& if you need to display an image instead of just having the name of
the uploaded file, then can use the very long:

db.table.field.display=lambda uuid: DIV(A(IMG(_src=URL
(r=request,f='download',args=[db(db.table2.uuid==uuid).select()
[0].image]),_height=100),_class='zoom',_href='#zoom-table-field-%s' %
uuid),DIV(IMG(_src=URL(r=request,f='download',args=[db
(db.table2.uuid==uuid).select()[0].image]),_width=600),_id='zoom-table-
field-%s' % uuid,_class='hidden'))

F
--~--~---------~--~----~------------~-------~--~----~
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