[web2py] session id under db.py

2019-05-01 Thread lucas
hey everyone, running 2.18.5. ok under the db.py i have something like: db.define_table('courses', Field('subject_id', db.subjects, requires=IS_IN_DB(db, db.subjects.id, '%(subject)s (%(id)s)'), writable=False, readable=False), Field('user_id', db.auth_user, requires=PROFESSOR, default

[web2py] Session Id changing between calls

2013-07-16 Thread jTony
Hi, I am using web2py to implement REST Server . I gave a 2 GET calls using same browser instance. I am finding the session id changing between the calls [Tue Jul 16 19:57:45 2013] response.session_id None:9f4c92be-9f70-4a1c-a22c-4b46d480d2c5 [Tue Jul 16 19:57:45 2013] request.env.http_cook

[web2py] session id is set to none with login_bare

2013-07-05 Thread Vikas Gupta
The client is an adroid app. I am getting the session_id as none in this function def myTestUserLoginFunc(): import json import gluon.contrib.simplejson import gluon.contrib.simplejson as sj data = sj.loads(request.body.read()) myemail=data['email'] mypassword=data['p

[web2py] session[id]

2013-01-02 Thread Annet
My application is completely node ID driven. I have the following router function: def router(): if not len(request.args): redirect(URL('addressbook','index')) else: id=int(request.args(0)) account=db(db.nodeAccount.nodeID==id).select(db.nodeAccount.ALL).first()

[web2py] session[id]=Storage(id=id) between controllers

2012-10-31 Thread Annet
In my node based app I create the following object session[id]=Storage(id=id) in which I store some data and menus the first time the index page of a site is loaded. After that session[id].node, session[id].navbar etc. evaluate to True and the data and menus are not set again. When the user edi

[web2py] session[id]=Storage(id=id) problem

2012-10-24 Thread Annet
I have a router function in which I have the following lines of code: session[id]=Storage(id=id) session[id].accountID=ADVANCEDACCOUNTID session[id].pluralID=account.pluralID redirect(URL('site','index',args=id)) in site/index/id I store settings in session[id]: if not session[id].s

[web2py] session[id].r['Nav']['function']=True TypeError: 'NoneType' object is unsubscriptable

2012-08-14 Thread Annet
I have the following lines of code: aboutnav=db((db.NodeNav.nodeID==id)&(db.NodeNav.navID==db.Nav.id)&(db.Nav.navbarID==ABOUTNAVBARID)).select(db.Nav.ALL,db.NodeNav.ALL,orderby=db.Nav.position).as_list() if aboutnav: session[id].aboutnav=True for r in aboutnav: if r['Nav']['id']==A

[web2py] Session ID

2011-05-20 Thread Thiago Abreu
how can I get the session id of a web2py app on Google App Engine? to make of this? or have to do differently?

[web2py] Session id gets re-used

2010-04-18 Thread Adi
Hi all, In my application, the session id seems to be getting re-used across different sessions. To explain: Login 1: --- print str(session) on user/logout shows the following: , 'last_visit': datetime.datetime(2010, 4, 19, 11, 18, 37, 417024), 'remember': False} >}> Login 2: -