Package flumotion :: Package component :: Package common :: Package streamer :: Module fragmentedresource :: Class Session
[hide private]

Class Session

source code

 twisted.persisted.styles.Versioned --+        
                                      |        
twisted.python.components.Componentized --+    
                                          |    
                 twisted.web.server.Session --+
                                              |
                                             Session

Instance Methods [hide private]
 
_init_(self, site, uid) source code
 
startCheckingExpiration(self)
Start expiration tracking.
source code
 
notifyOnExpire(self, callback)
Call this callback when the session expires or logs out.
source code
 
expire(self)
Expire/logout of the session.
source code
 
touch(self)
Notify session modification.
source code

Inherited from twisted.web.server.Session: __init__, checkExpired

Inherited from twisted.python.components.Componentized: __conform__, __provides__, addAdapter, addComponent, getComponent, locateAdapterClass, removeComponent, setAdapter, setComponent, unsetComponent

Inherited from twisted.persisted.styles.Versioned: __getstate__, __providedBy__, __setstate__, versionUpgrade

Class Variables [hide private]
  sessionTimeout = 900
timeout of a session, in seconds.
  _expireCall = None
hash(x)

Inherited from twisted.python.components.Componentized: __implemented__, persistenceVersion

Inherited from twisted.persisted.styles.Versioned: persistenceForgets

Instance Variables [hide private]

Inherited from twisted.web.server.Session: loopFactory

Inherited from twisted.web.server.Session (private): _reactor

Method Details [hide private]

startCheckingExpiration(self)

source code 

Start expiration tracking.

Parameters:
  • lifetime - Ignored; deprecated.
Returns:
None
Overrides: twisted.web.server.Session.startCheckingExpiration

notifyOnExpire(self, callback)

source code 

Call this callback when the session expires or logs out.

Overrides: twisted.web.server.Session.notifyOnExpire

expire(self)

source code 

Expire/logout of the session.

Overrides: twisted.web.server.Session.expire

touch(self)

source code 

Notify session modification.

Overrides: twisted.web.server.Session.touch