Massimo, I don't see how that could possibly work if there's no request.args(0)? In fact, I tried it and got an "invalid function" error. Wouldn't I first have to test not len(request.args(0)) and if True then create else update? This seems obvious, but it seems that crud is so compact that it might already be testing that condition, no?
On Jan 28, 10:02 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > form = crud.update(db.person, request.args(0), ...) > > this will do an update if you havehttp://.../action/[id] and a create > ifhttp://.../action > > On Jan 28, 1:53 am, weheh <richard_gor...@verizon.net> wrote: > > > > > changing subject line- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.