예제 #1
0
 def __init__(self):
     sessions = PersistentDict()
     SessionManager.__init__(
         self,
         session_class=PersistentSession,
         session_mapping=sessions,
     )
예제 #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)
예제 #3
0
 def __init__ (self, context):
     SessionManager.__init__(self, SqlQuixoteSession, SqlTableMap(context))
     self.context = context
예제 #4
0
파일: altdemo.py 프로젝트: pganti/micheles
 def __init__(self):
     sessions = PersistentDict()
     SessionManager.__init__(self,
                             session_class=PersistentSession,
                             session_mapping=sessions)
예제 #5
0
 def __init__(self):
     cxn = db.get_cxn()
     SessionManager.__init__(self, SqlQuixoteSession, SqlTableMap(cxn))