> - Why was this changed?. this was changed 2 years ago because the syntax of appadmin changed from raw SQL to DAL.
> - Does anybody use it this way?. nobody. That is why we changed it. The documentation is incorrect. Strangely this was changed BEFORE the documentation was published. On Jul 25, 1:28 pm, DenesL <[email protected]> wrote: > The original book had: > > <quote> > > When editing an existing person, the appadmin UPDATE form shows a link > to a page that lists the dogs that belong to the person. This behavior > can be replicated using the linkto argument of the SQLFORM. linkto has > to point to the URL of a new action that receives a query string from > the SQLFORM and lists the corresponding records. Here is an example: > > def display_form(): > record = db.person(request.args(0)) or redirect(URL('index')) > url = URL('download') > link = URL('list_records') > form = SQLFORM(db.person, records, deletable=True, upload=url, > linkto=link) > if form.accepts(request.vars, session): > response.flash = 'form accepted' > elif form.errors: > response.flash = 'form has errors' > return dict(form=form) > > </quote> > > So the questions are: > - Why was this changed?. > - Does anybody use it this way?.

