This can be simplified:
    cl__image = Image(db = db, auth_signature = auth.signature, session =
 session, 
           request = request, response = response)
to:
    cl__image = Image(db, auth.signature, session, request, response)

Consider using current in your module so you don't have to pass everything 
as an argument.
Anyway, if you change this does it work

    row = db(db.t_image.f_user_id == user_id).select(db.t_image.image).first
()
    img = IMG(_src = URL('default', 'download', args=row.image))
    return dict(img = img)


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to