commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5073 - trunk/gnue-appserver/src


From: jan
Subject: r5073 - trunk/gnue-appserver/src
Date: Fri, 6 Feb 2004 08:21:18 -0600 (CST)

Author: jan
Date: 2004-02-06 08:21:17 -0600 (Fri, 06 Feb 2004)
New Revision: 5073

Modified:
   trunk/gnue-appserver/src/geasSessionManager.py
Log:
use seperate database connections for every session


Modified: trunk/gnue-appserver/src/geasSessionManager.py
===================================================================
--- trunk/gnue-appserver/src/geasSessionManager.py      2004-02-06 10:41:55 UTC 
(rev 5072)
+++ trunk/gnue-appserver/src/geasSessionManager.py      2004-02-06 14:21:17 UTC 
(rev 5073)
@@ -25,6 +25,8 @@
 import geasAuthentication
 import classrep
 
+from gnue.common.datasources import GConnections
+
 # =============================================================================
 # Exceptions
 # =============================================================================
@@ -80,7 +82,15 @@
   def open (self, authentication):
     # TODO use a better session ID than this one
     self._sessNo = self._sessNo + 1
-    sess = geasSession.geasSession (self._connections, self._authAdapter, self,
+
+    # TODO: close connections on logout
+    loginHandler = self._connections._loginHandler
+    loginOptions = self._connections._loginOptions
+    location     = self._connections._location
+    
+    conn = GConnections.GConnections(location, loginHandler, loginOptions)
+   
+    sess = geasSession.geasSession (conn, self._authAdapter, self,
                                     self._sessNo)
 
     if not sess.login (authentication ['user'],





reply via email to

[Prev in Thread] Current Thread [Next in Thread]