[web2py] Re: Reading data from session files in cron job

2012-09-14 Thread Niphlod
no, sessions are Storage() objects. You need to unpickle them, change whatever you need to change and pickle them back before saving. On Friday, September 14, 2012 9:18:01 PM UTC+2, monotasker wrote: > > Ok, so would I then just have python read the contents of the file and > then unpickle the w

[web2py] Re: Reading data from session files in cron job

2012-09-14 Thread monotasker
Ok, so would I then just have python read the contents of the file and then unpickle the whole as a single string? Ian On Friday, September 14, 2012 2:52:33 PM UTC-4, Niphlod wrote: > > it's not hashed, it's pickled. > > On Friday, September 14, 2012 7:40:47 PM UTC+2, monotasker wrote: >> >> Fol

[web2py] Re: Reading data from session files in cron job

2012-09-14 Thread Niphlod
it's not hashed, it's pickled. On Friday, September 14, 2012 7:40:47 PM UTC+2, monotasker wrote: > > Following on an earlier question of mine, I'm trying to arrange for > persistent data (per user) by writing session data to the db. The trick I'm > stumbling over is how to make sure that the ses