There are three web2py.gluon.storage.Storage objects (extend dict): request.post_vars (stores variables submitted via POST) request.get_vars (stores variables submitted via GET) request.vars (a superset)
repeated variables are stored as lists. For example POST a=1&b=2&b=3 results in request.post_vars == request.vars == Storage(dict(a='1',b=['2','3'])) When a form is submitted request.post_vars are filtered by the validator and moved into form.vars. If the form is a create form, form.vars.id is added to the Storage. That is all. On Tuesday, 16 February 2016 08:31:05 UTC-6, Ayman Absi wrote: > > Hello, > > From Web2Py documentation I read this "accepts stores those variables > that pass validation into form.vars" but I can't find any documentation > tells what form.vars looks like. for example in some places in the document > we can find that there is form.vars.id. > > Is there any place I can find complete documentation about form.vars? > > Thank you > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.