Hello!

I have form with 5 upload fields. The update goes well (usually) but
sometimes if I dont have anything yet in the last 5. upload field and
I update all, the last one does not get updated. (NoneType stays
there..)

This been tested now with FireFox 3.5.5
I use form as return page so that's why 'keepvalues=True'


In controller:

row=db(db.table.media_id==request.args[0]).select()[0]

form=SQLFORM(db.table, row)

    if form.accepts(request.vars,session,keepvalues=True):
        response.flash='update ok'
    elif form.errors: response.flash='error found'    #not sure that
does it go here...   maybe not cause i dont recall

return dict(row=row, form=form)


--

You received this message because you are subscribed to the Google Groups 
"web2py-users" 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