Home | Trees | Index | Help |
|
---|
Package twisted :: Package web :: Package woven :: Module guard :: Class GuardSession |
|
Versioned
--+ |Componentized
--+ | GuardSession
A user's session with a system.
This utility class contains no functionality, but is used to represent a session.Method Summary | |
---|---|
Initialize a session with a unique ID for that session. | |
__getstate__(self)
| |
__setstate__(self,
d)
| |
_getSelf(self,
interface)
| |
checkExpired(self)
| |
clientForService(self,
service)
| |
Expire/logout of the session. | |
Call this callback when the session expires or logs out. | |
portalLogout(self,
port)
| |
resourceForPortal(self,
port)
| |
setClientForService(self,
ident,
perspective,
client,
service)
| |
Set the approximate lifetime of this session, in seconds. | |
setResourceForPortal(self,
rsrc,
port,
logout)
| |
touch(self)
| |
Inherited from Componentized | |
Utility method that calls addComponent. | |
Add a component to me, for all appropriate interfaces. | |
Create or retrieve an adapter for the given interface. | |
| |
Remove the given component from me entirely, for all interfaces for which it has been registered. | |
| |
| |
Remove my component specified by the given interface class. | |
| |
Inherited from Versioned | |
(internal) Do a version upgrade. |
Class Variable Summary | |
---|---|
Inherited from Componentized | |
int |
persistenceVersion = 1 |
Inherited from Versioned | |
tuple |
persistenceForgets = ()
|
Method Details |
---|
__init__(self,
guard,
uid)
Initialize a session with a unique ID for that session.
|
expire(self)Expire/logout of the session. |
notifyOnExpire(self, callback)Call this callback when the session expires or logs out. |
setLifetime(self, lifetime)Set the approximate lifetime of this session, in seconds. This is highly imprecise, but it allows you to set some general parameters about when this session will expire. A callback will be scheduled each 'lifetime' seconds, and if I have not been 'touch()'ed in half a lifetime, I will be immediately expired. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:39 2004 | http://epydoc.sf.net |