server/session.py
branchstable
changeset 7054 c8f12ab250b7
parent 6582 8eb7883b4223
child 7083 b8e35cde46e9
--- a/server/session.py	Tue Mar 08 17:55:02 2011 +0100
+++ b/server/session.py	Tue Mar 08 17:55:15 2011 +0100
@@ -854,6 +854,10 @@
         del self.__threaddata
         del self._tx_data
 
+    @property
+    def closed(self):
+        return not hasattr(self, '_tx_data')
+
     # transaction data/operations management ##################################
 
     @property