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.
Just before calling cPickle.loads()
the method inserts (and
after removes) the application page module directory into
sys.path
. This allows the pickler to find classes which are
defined in application page modules. The page module directory is
determined by calling the app.module_path() method.
) |
sys.stderr
.
The dictionary is then passed to cPickle.dumps()
and the result
is returned.
flag) |
TRUE
which means the session will be saved.
) |