I lost the source of the cookbook manual. It cannot be revised. It is very old in fact.
On Apr 13, 11:28 am, zxynax <zxy...@gmail.com> wrote: > Don't know if this is the right place for this. > > On page 70 of the cookbook it shows the example below: > def index(): > form = SQLFORM(db.dog) > if form.accept(request.vars,session): > response.flash = "record %i created" % form.vars.id > return dict(form=form) > > Neither FORM nor SQLFORM have a method accept. Instead the text > should read: > def index(): > form = SQLFORM(db.dog) > if form.accepts(request.vars,session): > response.flash = "record %i created" % form.vars.id > return dict(form=form) -- To unsubscribe, reply using "remove me" as the subject.