Table of contents Index

class StackedSession - Session class for subsessions.

Declared in module Session

Inheritance hierarchy:

Session.StackedSession
  Session.AbstractSession

Synopsis

class StackedSession(AbstractSession):
    def Session.StackedSession.__getattr__(self, name) # Perform attribute inheritance
    def Session.StackedSession.__init__(self, owner, chainer=None) # Initializes a StackedSession instance.
    def Session.StackedSession.setProxy(self, proxy) # Set the proxy name used in this subsession.

    # Inherited from Session.AbstractSession
    def Session.AbstractSession.destroy(self) # Destroys the session. 

Description

A StackedSession is a subsession, inheriting attributes from its parent.

Attributes:

owner
Parent session
chainer
Chainer used to chain up to parent. If none simply server_fd is used.


Session.StackedSession.__getattr__(self, name)

Perform attribute inheritance

self
this instance
name
Name of the attribute to get.
Wrapper to return variables from parent session, if not overriden in this instance.

Returns:

The value of the given attribute.

Session.StackedSession.__init__(self, owner, chainer=None)

Initializes a StackedSession instance.

self
this instance
owner
Parent session
chainer=None
Chainer used to chain up to parent.


Session.StackedSession.setProxy(self, proxy)

Set the proxy name used in this subsession.

self
this instance
proxy
Proxy class, derived from Proxy
Stores a reference to the proxy class, and modifies the session_id to include the proxy name.
Copyright © 2000 BalaBit IT Ltd.
Written by: Balázs Scheidler