Hello. Reading the SQLFORM sources doesn't give me any insight on how to do custom form layout w/o modifying web2py source AND writing extensive wrappers around it.
I found these pages while googling: http://groups.google.com/group/web2py/browse_thread/thread/39c0bd5e01860eb/fecc0f6edbb3885f?lnk=gst&q=custom+sqlform+layout#fecc0f6edbb3885f http://www.wellbehavedsystems.co.uk/web2py/examples/custom_forms.html As I can see - it was an unofficial solution, proposed about a half-year ago. Is it a recommended approach atm? If not - is there one? If yes - is it going to be included? I am personally didn't like it too much - it's what I referred to as 'extensive wrapper'. If there is no support in current SQLFORM yet I'll probably end up writing something myself, hopefully something simpler. Currently I think of something like this (in SQLFORM.__init__): 1) iterate over fields, generate widgets (it does that already), 2) put generated widgets into a Storage(input_name:input_widget) 3) self.components=[] self.do_custom_layout() # by default does nothing, can be redefined in derived clases self.do_standard_layout() # populates table with fields remaining in the Storage fields do_custom_layout (when redefined) will pop widgets out of said Storage and put them into some HTML, adding it to self.components -- Sincerely yours Alexey Nezhdanov --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---

