Massimo,

Thanks.

I'm also looking at the manual on pages 172-173 about how to preserve
the filename.  I see how the db is defined and how to retrieve the
file (def display_form), but it doesn't show how to save the data to
the database in this scenario.  Is there a t2 way to do this? It looks
like "def thumb" might do the save - I guess....

thx again,

-wj

On Mon, Dec 8, 2008 at 5:46 PM, mdipierro <[EMAIL PROTECTED]> wrote:

> 2) let me assume non-GAE and T2.
>
>     def thumb(form):
>         filename=form.vars.image
>         thumbnaum_filename=make_thumbnail(filename)
>         db(db.foto.id==form.vars.id).update
> (thumbnail=thumbnail_filename)
>     form=t2.create(db.foto,onaccept=thumb)

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