The SessionBase class provides base session handling functionality which is used by all standard Albatross execution context session mixin classes.
) |
The class maintains a dictionary of all names from the execution context local namespace which belong in the session. This dictionary is restored along with the session when the session is decoded.
...) |
The names can optionally be supplied as a list or tuple of names.
name, value) |
...) |
The names can optionally be supplied as a list or tuple of names.
) |
) |
text) |
cPickle.loads()
to retrieve a dictionary of session
values. The dictionary is merged into the session local namespace.
Adds the keys of the dictionary to the session dictionary.
Note that an import hook is used around the cPickle.loads()
to redirect requests to load page modules to the
app.load_page_module() method. This allows the pickler
to find classes which are defined in application page modules.
Whether a module is a page module is determined by calling the
app.is_page_module() method, passing the module name.
) |
sys.stderr
.
The dictionary is then passed to cPickle.dumps()
and the result
is returned.
flag) |
TRUE
which means the session will be saved.
) |