Skip to content

Gae sessions not supporting nested dictionaries. #41

@pradeepmantha

Description

@pradeepmantha

Hi, I am trying to load store, nested dictionary in session in one POST handler, and retrieve it in another GET post handler. It seems somehow it is not storing nested dictionaries and it is being emptied. Below is the sample LOGS from GAE debug session.

INFO 2013-04-27 00:03:54,962 genergy.py:715] SID=1367625833_21d8679ec0f7dab4c125da6e4ea2fa3b {'after': {}, 'after_dcs': 1, 'current_dcs': 1, 'current': {1: {'dc_state': u'', 'redundancy': u'N', 'users_servers': u'option1', 'dc_type': 'Closet', 'nbr_servers': 1.0, 'nbr_users': 25.0, 'user_host': u'300', 'server_user_ratio': 1.0, 'application': 'Email', 'dc_country': u'', 'carbon': u'343'}}, 'model': 'current', 'first': True}
INFO 2013-04-27 00:03:54,963 recording.py:673] Saved; key: appstats:034900, part: 21 bytes, full: 1619 bytes, overhead: 0.000 + 0.001; link: http://localhost:8082/_ah/stats/details?time=1367021034959

INFO 2013-04-27 00:03:54,970 dev_appserver.py:3104] "POST / HTTP/1.1" 302 -
INFO 2013-04-27 00:03:54,983 genergy.py:478] SID=1367625833_21d8679ec0f7dab4c125da6e4ea2fa3b {'after': {}, 'after_dcs': 1, 'current_dcs': 1, 'current': {}, 'model': 'current', 'first': True}
ERROR 2013-04-27 00:03:54,985 webapp2.py:1552] 1

Could you please check , whether nested dictionary values can be stored in sessions or not.

thanks
pradeep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions