A bit more details:
this controller function is called by ajax:
def add_filter():
#append new custom object to list in session.filter
#Filter object contains only strings and dicts
session.filter.append(Filter())
#update session.filter list with some computations, it works
update_filter()
#generates HTML inputs and selects from session.filter list
filter_terms = prepare_filter()
return dict(filter_terms=XML(filter_terms))
at this point you can print session.filter and see valid contents;
also in session file you can see valid pickle representation of my
Filter object.
Resulting XML is rendered in browser DIV, as usually by Ajax call.
But after this, ANY call to the site (ajax or normal) generate new
session file or record in db if session storage is db. This new
session is of course empty, and application tries to use this new
session.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---