Ejemplo n.º 1
0
 def __init__(self):
     sessions = PersistentDict()
     SessionManager.__init__(
         self,
         session_class=PersistentSession,
         session_mapping=sessions,
     )
Ejemplo n.º 2
0
    def __init__(self, session_class=None, session_mapping=None):

        if not mod_py_sess_factory.has_key(session_class):
            ModPySession.setSessionClass(session_class)
            mod_py_sess_factory[session_class] = copy.copy(ModPySession)

        klass = mod_py_sess_factory.get(session_class)
        SessionManager.__init__(self, session_class=klass,
                                session_mapping=session_mapping)
Ejemplo n.º 3
0
 def __init__ (self, context):
     SessionManager.__init__(self, SqlQuixoteSession, SqlTableMap(context))
     self.context = context
Ejemplo n.º 4
0
 def __init__(self):
     sessions = PersistentDict()
     SessionManager.__init__(self,
                             session_class=PersistentSession,
                             session_mapping=sessions)
Ejemplo n.º 5
0
 def __init__(self):
     cxn = db.get_cxn()
     SessionManager.__init__(self, SqlQuixoteSession, SqlTableMap(cxn))