Thanks for that assistance on sessions *@ *Константин Комков,  

On Monday, March 18, 2019 at 9:46:14 AM UTC+2, Константин Комков wrote:
>
> Did you write that in db.py?
>
> session <http://192.168.20.184/examples/global/vars/session>.connect(request 
> <http://192.168.20.184/examples/global/vars/request>, response 
> <http://192.168.20.184/examples/global/vars/response>, db_app, masterapp=None)
>
> It's how I use sessions in form:
>
> form = FORM(
>     SELECT <http://192.168.20.184/examples/global/vars/SELECT>(
>         [rec.NAME for rec in 
> db(db.s_graduation_types).select(db.s_graduation_types.NAME)],
>         _class='form-control',
>         value=session 
> <http://192.168.20.184/examples/global/vars/session>.edu_grad_type if session 
> <http://192.168.20.184/examples/global/vars/session>.edu_grad_type else '',
>         _name='grad_type',
>         _id='eduType'
>     )
> )
>
>
> *if form.process(formname='form',onvalidation=edu_validation).accepted:       
>  session.edu_grad_type = form.vars.grad_type        
> redirect(URL('bak','select_cg'))*
>
> After end work with session I clear it:
>
> session <http://192.168.20.184/examples/global/vars/session>.edu_grad_type = 
> None
>
>
>
>

-- 
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.

Reply via email to