If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
If you want to work with <fieldset> and <legend> you can still use SQLFORM. As shown in other slides the form can be manipulated by slicing and method ...