class documentation

class Session(components.Componentized): (source)

View In Hierarchy

Class Variable sessionTimeout Undocumented
Method __init__ Initialize a session with a unique ID for that session.
Instance Variable site Undocumented
Instance Variable uid Undocumented
Instance Variable expireCallbacks Undocumented
Instance Variable sessionNamespaces Undocumented
Method startCheckingExpiration Start expiration tracking.
Method notifyOnExpire Call this callback when the session expires or logs out.
Method expire Expire/logout of the session.
Method touch Mark the session as modified, which resets expiration timer.
Instance Variable lastModified Undocumented
Instance Variable _expireCall Undocumented
Instance Variable _reactor Undocumented

Inherited from Componentized:

Class Variable persistenceVersion Undocumented
Method locateAdapterClass Undocumented
Method setAdapter Cache a provider for the given interface, by adapting self using the given adapter class.
Method addAdapter Utility method that calls addComponent. I take an adapter class and instantiate it with myself as the first argument.
Method setComponent Cache a provider of the given interface.
Method addComponent Add a component to me, for all appropriate interfaces.
Method unsetComponent Remove my component specified by the given interface class.
Method removeComponent Remove the given component from me entirely, for all interfaces for which it has been registered.
Method getComponent Create or retrieve an adapter for the given interface.
Method __conform__ Undocumented
Instance Variable _adapterCache Undocumented
sessionTimeout = (source)

Undocumented

(type: int)
_expireCall = (source)

Undocumented

def __init__(self, site, uid, reactor=None): (source)

Initialize a session with a unique ID for that session.

ParameterssiteUndocumented
uidUndocumented
reactorIReactorTime used to schedule expiration of the session. If None, the reactor associated with site is used.
_reactor = (source)

Undocumented

site = (source)

Undocumented

Undocumented

expireCallbacks = (source)

Undocumented

(type: list)
sessionNamespaces = (source)

Undocumented

(type: dict)
def startCheckingExpiration(self): (source)

Start expiration tracking.

ReturnsNone
def notifyOnExpire(self, callback): (source)

Call this callback when the session expires or logs out.

def expire(self): (source)

Expire/logout of the session.

def touch(self): (source)

Mark the session as modified, which resets expiration timer.

lastModified = (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 21.2.2 at 2021-07-28 08:52:54.