I'm doing #controller db.auth_user.default_2.requires=IS_IN_SET(...list depends on db.auth_user.default_1 ...) form=auth.profile(next=URL(r=request,f='profile')) to let the user enter stuff in their user profile (defaults, etc.).
Once the form is loaded, ajax keeps auth_user.default_2 in synch with changes made to auth_user.default_1. However, upon pressing the submit button, the requires statement above kicks in again. So I only want to run it once upon loading the form. The question is: what should I conditionally test for to determine whether the form has been submitted or whether it has been generated. This seems to work: if not request.vars: db.auth_user.default_2.requires=IS_IN_SET(...) but I'm pretty sure request.vars is not a robust way to detect whether the controller is creating a new form or accepting an existing form. So what is the right thing to test?

