if form.process(formname='form1').accepted:Up to this point the clinical studies have had few strata (< 10). This latest study, however, has N=16 strata. Everything looked fine until I checked the functioning of all the 16 forms and found that some worked (i.e. were accepted) and some didn't. Then, after debugging into html.py (accepts function) I noticed that there were only 10 formkeys represented in the session at any one time. Then, after much ado I found this post:
http://comments.gmane.org/gmane.comp.python.web2py/129006
in which Anthony explains that, indeed the formkey list in the session holds 10 rotating entries.session[keyname] = list(session.get(keyname,[]))[-9:] + [formkey]
I would probably change the way the application works. There is absolutely no need for you to have all the 16 forms in the HTML at the same time and then try to process each one in the controller to see which was submitted. Just load the form you need when you need it using ajax.