app engine dude
unread,Mar 4, 2009, 5:33:26 AM3/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appengine-utilities
hi,
Iam developing an app that has session management included.My page has
login for vieing the main page.after checking the login it sets the
session like this
self.session = Session()
self.session['username']=username
while retriving the session variable it is done like this...
self.session = Session()
user=self.session['username']
This works fine...but some times...there was an error being displayed
as...
'username'
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 501, in __call__
handler.get(*groups)
File "/base/data/home/apps/****/
1.331808180605034694/21_test_demo.py", line 190, in get
user=self.session['username']
File "/base/data/home/apps/****/1.331808180605034694/
appengine_utilities/sessions.py", line 396, in __getitem__
raise KeyError(str(keyname))
KeyError: 'username'
**** corresponds to my app name...
plz hep me out with this...
Thanx in advance.