flask :: sessions :: NullSession :: Class NullSession
[hide private]
[frames] | no frames]

Class NullSession


Class used to generate nicer error messages if sessions are not available. Will still allow read-only access to the empty session but fail on setting.

Instance Methods [hide private]
v, remove specified key and return the corresponding value
setdefault(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
v, remove specified key and return the corresponding value
update(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
v, remove specified key and return the corresponding value
popitem(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
v, remove specified key and return the corresponding value
pop(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
v, remove specified key and return the corresponding value
clear(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
v, remove specified key and return the corresponding value
__delitem__(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
v, remove specified key and return the corresponding value
__setitem__(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised

Inherited from SecureCookieSession: __init__

Inherited from werkzeug.datastructures.CallbackDict: __repr__

Inherited from dict: __cmp__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __sizeof__, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from werkzeug.datastructures.UpdateDictMixin: on_update

Inherited from dict: __hash__

Inherited from SessionMixin: modified, new

Properties [hide private]

Inherited from SessionMixin: permanent

Inherited from object: __class__

Method Details [hide private]

setdefault(self, *args, **kwargs)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.setdefault
(inherited documentation)

update(self, *args, **kwargs)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.update
(inherited documentation)

popitem(self, *args, **kwargs)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.popitem
(inherited documentation)

pop(self, *args, **kwargs)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.pop
(inherited documentation)

clear(self, *args, **kwargs)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.clear
(inherited documentation)

__delitem__(self, *args, **kwargs)
(Index deletion operator)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.__delitem__
(inherited documentation)

__setitem__(self, *args, **kwargs)
(Index assignment operator)

 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.__setitem__
(inherited documentation)