Problem solved:

that was not ajax or web2py fault. Sessions are broken when you try to
store any custom class (not only db-related class). Example:

class Klaas: pass
session.something = Klaas()
#this will be stored in session and in session file you will see
correct pickle representation of the object (NB!)

However, later in  other calls this session won't be restored and
silently updated with new one. Therefore, several suggestions:
1. update docs to clearly say that no classes defined in your models
or controller files, can be stored in sessions
2. make some error diagnostic for this case, e.g. print to console
window
3. won't that be possible in the future (no hurry) to import classes
e.g. defined in models, to pickle environment, because now object
storing in sessions 'almost works' so why stop at half of the road?

Thank you for great product!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to