server/session.py
branchstable
changeset 8529 1daea1f433c9
parent 8433 ff9d6d269877
child 8535 268b6349baf3
child 8585 3f60f416dddb
--- a/server/session.py	Thu Aug 30 17:38:43 2012 +0200
+++ b/server/session.py	Tue Sep 04 06:09:17 2012 +0200
@@ -106,7 +106,8 @@
         self.free_cnxset = free_cnxset
 
     def __enter__(self):
-        pass
+        # ensure session has a cnxset
+        self.session.set_cnxset()
 
     def __exit__(self, exctype, exc, traceback):
         if exctype: