>
> Consider using current in your module so you don't have to pass everything
> as an argument.
>
Awesome - thanks! I had no idea about that; was previously just using
current to access current.T().
Anyway, if you change this does it work
>
Thanks, Leonel. The suggested changes didn't fix it, however. Looking at
the source of the image which isn't showing, I'm seeing the same URL as was
produced with the code I was previously using (127.0.0.1:8000/[app
name]/default/download/[file name]). The same error message is still being
produced.
On Saturday, October 18, 2014 10:25:42 AM UTC-5, Leonel Câmara wrote:
>
> 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.