Home | Trees | Indices | Help |
|
---|
|
object --+ | StorageAdapter
Storage adapter
This class acts a glue code between the session object, middleware and storage implementations. It provides all interfaces needed both by the public session object and the middleware. The lazyness of session initialization and store back are also implemented here.
|
|||
|
|||
any |
|
||
|
|||
any |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
str |
|
||
Inherited from |
|
|||
_stored = False
|
|
|||
bool |
_dirty = False Is the session dirty (need store back)? |
||
tuple |
_factory Tuple of storage factory and request object. |
||
StorageInterface |
_storage Lazily initialized storage instance (on first access) |
|
|||
Inherited from |
|
|
Resolve unknown attributes Effectively resolve the _storage attribute lazily. The attribute will be cached in the instance, so this method is called only once (for _storage).
|
|
|
|
|
Note: The session is only stored back, if it's marked dirty. |
|
|
_factoryTuple of storage factory and request object. When the storage is initialized, this attribute becomes None
|
Home | Trees | Indices | Help |
|
---|