On Fri, Apr 17, 2009 at 11:08 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > I made a change in trunk that changes the default "formname" for > SQLFORM. > > For create forms it is '%(tablename)_create' and for update or > readonly forms it is '%(tablename)_%(record_id)s'. I do not think this > should be considered a backward incompatible change since I do not see > why anybody would rely on the previous default form names (which > bytheway are undocumented) anybody I would like to know if anybody > opposes.
It's ok for me. > The change has the advantages to allow multiple forms per page (for > editing multiple record for example) something that now is only > possible it the user overrides the default name. Good. I tried to help an user with GET forms in #web...@irc.freenode.net some days[1] but I can't because we can't do what he want in a simple way with web2py. So, I ask (and propose): is there an way to implement forms to NOT has names by default? Or implement it in an way that I can ommit form name and form.accepts() works perfectly? I think we can implement that way: - form.accepts() verify if there is request.vars. * If False, form user didn't submit form and form is showed normally. * If True, it does the validation, put errors (or proccess form) etc. The only thing that will change for existing forms is that if user submit a GET form without fill any field, it won't show errors to this user. But if you use POST form, we can show errors because we can send the input 'submit' value in HTTP request (and get it in request.vars) or some other hidden field for control. I think it is not backward incompability and we can set an option 'verify_blank' in GET forms to do it in "old" way (so a new var in query string is needed). [1] http://groups.google.com/group/web2py/browse_thread/thread/ca7384b77cca4817/cbdcd114547a2e40 -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---