I have a db update method that can update several images- however, at any given time I will only need to update 1 of the 3 images.
a) Is there a way for me to pass in only the image I want updated without having to write the update method out 3 times- i.e. can I pass a pre-defined dictionary of args to the update method? (This may be more of a Python question than a Web2Py one.) b) OR- is there a way to pass a default value to the image field if I don't want it to be overwritten? db(db.table.id==record_id).update(name=new_name, image_1 =db.table.image_1.store(request.vars.image_1,'myimage1'), image_2 =db.table.image_2.store(request.vars.image_2,'myimage2'), image_3 =db.table.image_3.store(request.vars.image_3,'myimage3')) )