You can have custom forms. You always could. Since version 1.48 (posted today) it is even easier:
#in model: db.define_table('mytable',SQLField('myfield')) #in controller: def index(): form=SQLFORM(db.mytable) if form.accepts(request.vars,session): response.flash='form accepted' return dict(form=form) #and in view: {{extend 'layout.html'}} <form> <label>{{=db.mytable.myfield.label}}</label> <input name="myfield" value="{{=form.latest.myfield}}" /> {{if form.errors.myfield:}}{{=form.errors.myfield}}{{pass}} <input type="submit" /> {{=form.hidden_fields()}} </form> Massimo On Nov 10, 2:04 pm, "Daniel Guryca" <[EMAIL PROTECTED]> wrote: > Hey totally agree with you ! > > It is too bad not to be able to define my own fully customized forms > within a view, > operate over them in a controller but still need to have a necessary > relation to a database model ! > > Logic should be defined in a controller and presentation in a view. > > Daniel > > On Mon, Nov 10, 2008 at 2:23 PM, billf <[EMAIL PROTECTED]> wrote: > > > Hi All > > > I know that there is a patch related to custom views in the pipeline > > but this proposal is another step on from that. > > > I am proposing an additional approach that enables those things that > > (I consider) are view-related to be moved from the model and > > controller to the view. In addition, it provides separation of html > > form from model related logic such as validation and db updating. > > > There are still some areas to be covered but I have written a page > > that, hopefully, explains the ideas at > > >http://www.wellbehavedsystems.co.uk/web2py/examples/mvc.html > > > All comments gratefully accepted. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---