dbapi.py
branchstable
changeset 7428 5338d895b891
parent 7140 ba51dac1115d
child 7543 570522300e22
child 7589 d3459fe041f0
--- a/dbapi.py	Wed May 25 08:51:45 2011 +0200
+++ b/dbapi.py	Wed May 25 10:58:43 2011 +0200
@@ -30,6 +30,7 @@
 from itertools import count
 from warnings import warn
 from os.path import join
+from uuid import uuid4
 
 from logilab.common.logging_ext import set_log_methods
 from logilab.common.decorators import monkeypatch
@@ -246,7 +247,7 @@
         if cnx is not None:
             self.sessionid = cnx.sessionid
         else:
-            self.sessionid = None
+            self.sessionid = uuid4().hex
 
     @property
     def anonymous_session(self):