Re: [web2py] Book Edit Suggestion

2010-11-04 Thread Bruno Rocha
It is ok to do search, rows = crud.search(table), crud.select(table) Edited! 2010/11/4 villas > http://www.web2py.com/book/default/chapter/07#CRUD > > I noticed this example in the book which does not seem correct: > > def manage(): >table=db[request.args(0)] >form = crud.update(table,

[web2py] Book Edit Suggestion

2010-11-04 Thread villas
http://www.web2py.com/book/default/chapter/07#CRUD I noticed this example in the book which does not seem correct: def manage(): table=db[request.args(0)] form = crud.update(table,request.args(1)) table.id.represent = lambda id: \ A('edit:',id,_href=URL(args=(request.args(0),id