Package session2 :: Module DictSession :: Class DictSession
[frames | no frames]

Class DictSession

 Session --+
           |
UserDict --+
           |
          DictSession


A session object that also acts like a dictionary.

Unlike some object/dict hybrids, keys and attributes are distinct and not interchangeable. Beware of assigning attributes that override dict methods.


Method Summary
  __init__(self, id)
    Inherited from UserDict
  __cmp__(self, dict)
  __contains__(self, key)
  __delitem__(self, key)
  __getitem__(self, key)
  __len__(self)
  __repr__(self)
  __setitem__(self, key, item)
  clear(self)
  copy(self)
  fromkeys(cls, iterable, value)
(Class method)
  get(self, key, failobj)
  has_key(self, key)
  items(self)
  iteritems(self)
  iterkeys(self)
  itervalues(self)
  keys(self)
  pop(self, key, *args)
  popitem(self)
  setdefault(self, key, failobj)
  update(self, dict)
  values(self)
    Inherited from Session
  __str__(self)
  dump(self, file, header, deep)
  get_access_age(self, _now)
Return the number of seconds since session was last accessed.
  get_access_time(self)
Return the time that this session was last accessed (seconds since epoch).
  get_creation_age(self, _now)
Return the number of seconds since session was created.
  get_creation_time(self)
Return the time that this session was created (seconds since epoch).
  get_remote_address(self)
Return the IP address (dotted-quad string) that made the initial request in this session.
  get_user(self)
  has_info(self)
() -> boolean
  set_user(self, user)
  start_request(self)
Called near the beginning of each request: after the HTTPRequest object has been built, but before we traverse the URL or call the callable object found by URL traversal.

Generated by Epydoc 2.1 on Mon Oct 24 19:07:08 2005 http://epydoc.sf.net