WebKit.SessionMemoryStore | index /usr/local/share/webware/WebKit/SessionMemoryStore.py

`Session store in memory.`

Classes

``

WebKit.SessionStore.SessionStore(__builtin__.object)
  SessionMemoryStore

class SessionMemoryStore(WebKit.SessionStore.SessionStore)
`` | `Stores the session in memory as a dictionary. This is fast and secure when you have one, persistent app server.`

Method resolution order:
  SessionMemoryStore
  WebKit.SessionStore.SessionStore
  __builtin__.object

Methods defined here:

__contains__(self, key)
  `Check whether the session store has a given key.`

__delitem__(self, key)
  `Delete a session item from the store.`

__getitem__(self, key)
  `Get a session item from the store.`

__init__(self, app, restoreFiles=True)
  `Initialize the session memory store.
  If restoreFiles is true, and sessions have been saved to file,
  the store will be initialized from these files.`

__iter__(self)
  `Return an iterator over the stored session keys.`

__len__(self)
  `Return the number of sessions in the store.`

__setitem__(self, key, value)
  `Set a session item, saving it to the store.`

clear(self)
  `Clear the session store, removing all of its items.`

keys(self)
  `Return a list with the keys of all the stored sessions.`

pop(self, key, default=<class 'MiscUtils.NoDefault'>)
  `Return value if key available, else default (also remove key).`

setdefault(self, key, default=None)
  `Return value if key available, else default (also setting it).`

storeAllSessions(self)
  `Permanently save all sessions in the store.`

storeSession(self, session)
  `Save already potentially changed session in the store.`

Methods inherited from WebKit.SessionStore.SessionStore:

__repr__(self)
  `Return string representation of the store like a dictionary.`

application(self)
  `Return the application owning the session store.`

cleanStaleSessions(self, task=None)
  `Clean stale sessions.
  Called by the Application to tell this store to clean out all
  sessions that have exceeded their lifetime.`

decoder(self)
  `Return the value deserializer for the store.`

encoder(self)
  `Return the value serializer for the store.`

get(self, key, default=None)
  `Return value if key available, else return the default.`

has_key(self, key)
  `Check whether the session store has a given key.`

items(self)
  `Return a list with the (key, value) pairs for all sessions.`

iteritems(self)
  `Return an iterator over the (key, value) pairs for all sessions.`

iterkeys(self)
  `Return an iterator over the stored session keys.`

itervalues(self)
  `Return an iterator over the stored values of all sessions.`

setEncoderDecoder(self, encoder, decoder)
  `Set the serializer and deserializer for the store.`

values(self)
  `Return a list with the values of all stored sessions.`

Data descriptors inherited from WebKit.SessionStore.SessionStore:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`