becase form=SQLFORM() is already a server side representation of the DOM. It is not an abstract object. after form=SQLFORM() you are supposed to be able to do form.element(name)[attribute](value) for example and other DOM manipulations.
If form were a more abstract object and if its DOM representation were to be decided later (form.as_div()) you would not be able to manipulate the DOM. This would 1) break backward compatibility; 2) break everything that is good about about it. Massimo On Apr 1, 3:24 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > So why formstyle instead of > > form.as_div() > or > form.as_ul() > > ?? > > -Thadeus > > On Wed, Mar 24, 2010 at 8:18 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > Thank you! > > > On Mar 24, 8:21 pm, Jose <jjac...@gmail.com> wrote: > >> I sent a patch to Massimo > > > -- > > You received this message because you are subscribed to the Google Groups > > "web2py-users" group. > > To post to this group, send email to web...@googlegroups.com. > > To unsubscribe from this group, send email to > > web2py+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/web2py?hl=en. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.