Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.support.werkzeug.contrib.sessions Namespace Reference

Classes

class  ModificationTrackingDict
class  Session
class  SessionStore
class  FilesystemSessionStore
class  SessionMiddleware

Functions

def _urandom
def generate_key

Variables

tuple _sha1_re = re.compile(r'^[a-fA-F0-9]{40}$')

Function Documentation

Definition at line 72 of file sessions.py.

00072 
00073 def _urandom():
00074     if hasattr(os, 'urandom'):
00075         return os.urandom(30)
00076     return random()
00077 

Here is the caller graph for this function:

Definition at line 78 of file sessions.py.

00078 
00079 def generate_key(salt=None):
00080     return sha1('%s%s%s' % (salt, time(), _urandom())).hexdigest()
00081 

Here is the call graph for this function:


Variable Documentation

tuple MoinMoin.support.werkzeug.contrib.sessions._sha1_re = re.compile(r'^[a-fA-F0-9]{40}$')

Definition at line 69 of file sessions.py.