hmmmm... somehody my answer was not posted, reposting it
Hi Hamdy,
you raise a good issue. I am forwarding to the list to see what people
think about this in respect to backward compatibility.
Eight now when
form=SQLFORM(db.define_table('sometable',Field('somefield','upload')))
form.accepts(request.vars)
request.vars.somefield and form.somefield, both contain a
cgi.FieldStorage object
form.somefield_newfieldname contains the new name for the uploaded
field.
Hamdy is proposing changing this so that
request.vars.somefield contains the cgi.FieldStorage object and
and form.somefield and form.somefield_newfieldname, both contain the
new name for the uploaded field.
One the one side the proposed change may simplify the handling on the
form in some cases. like when dbio=False, bot on the other side it
introduces some problems: 1) may break backward compatibility
(although in about something not well documented); 2) even if SQLFORM
extends a FORM makes them behave differently in respect to how they
handle type='file' input fields
Both 1 and 2 are weak arguments and I am very unsure about this one.
Anybody else pro or opposed?
Massimo
On Apr 11, 2:42 pm, "hamdy.a.farag" <[email protected]> wrote:
> sorry for the adds , I don't use may mail usually to post in the
> group
--
To unsubscribe, reply using "remove me" as the subject.