Re: [web2py] Re: crud.update strange behavior

2010-07-13 Thread Jean-Guy
Ok I short my function for more clarity there is a else clause for the first if in the original function... And I found a solution see my foward. Jonhy On 2010-07-13 11:28, mdipierro wrote: if is false and the second it true?

[web2py] Re: crud.update strange behavior

2010-07-13 Thread mdipierro
No. There are lots of errors in the code mostly here: if auth.has_membership(auth.id_group('tech')): form = crud.create(db.atable) ... if form.accepts(request.vars, session): 1) you cannot form.accept a crud form. crud forms already accept internally. 2) even if you us